[FFmpeg-cvslog] avfilter/vf_v360: do not round second arg for rescale()

Paul B Mahol git at videolan.org
Sat Oct 9 17:59:52 EEST 2021


ffmpeg | branch: master | Paul B Mahol <onemda at 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;
 }



More information about the ffmpeg-cvslog mailing list