ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Sat Oct  9 15:42:03 
2021 +0200| [fd3aba10cc55a668997c1d1fae5555ad2e8af910] | committer: Paul B Mahol

avfilter/vf_v360: do not round second arg for rescale()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fd3aba10cc55a668997c1d1fae5555ad2e8af910
---

 libavfilter/vf_v360.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index f7c45286e2..cc075cd39f 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -1378,7 +1378,7 @@ static av_always_inline float scale(float x, float s)
     return (0.5f * x + 0.5f) * s - 0.5f;
 }
 
-static av_always_inline float rescale(int x, int s)
+static av_always_inline float rescale(int x, float s)
 {
     return (2.f * x + 1.f) / s - 1.f;
 }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to