diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-10-09 15:42:03 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-10-09 16:59:35 +0200 |
commit | fd3aba10cc55a668997c1d1fae5555ad2e8af910 (patch) | |
tree | 0b95eb40ff539c09026151f3869b7b7326fa4f06 | |
parent | c0d38beac0c45793228b8d5af19406e63c84a7bd (diff) | |
download | ffmpeg-fd3aba10cc55a668997c1d1fae5555ad2e8af910.tar.gz |
avfilter/vf_v360: do not round second arg for rescale()
-rw-r--r-- | libavfilter/vf_v360.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |