Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-10-09 16:42:03 +0300
committerPaul B Mahol <onemda@gmail.com>2021-10-09 17:59:35 +0300
commitfd3aba10cc55a668997c1d1fae5555ad2e8af910 (patch)
tree0b95eb40ff539c09026151f3869b7b7326fa4f06 /libavfilter/vf_v360.c
parentc0d38beac0c45793228b8d5af19406e63c84a7bd (diff)
avfilter/vf_v360: do not round second arg for rescale()
Diffstat (limited to 'libavfilter/vf_v360.c')
-rw-r--r--libavfilter/vf_v360.c2
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;
}