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:
authorMichael Niedermayer <michael@niedermayer.cc>2019-10-12 14:46:04 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2019-12-31 21:51:56 +0300
commit030884f6a64793e03da1ac98b2d5e0b8fe92c0e6 (patch)
treec5af475be3e3179213696c4fae99c055d0633c2c /libavfilter
parentd9259e05c22778701ebdc5a4e4c1d92b04912a22 (diff)
avfilter/vf_geq: Use av_clipd() instead of av_clipf()
With floats we cannot represent all 32bit integer dimensions Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit c8813b1a984714f0027cabeea2394035df20cf38) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_geq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_geq.c b/libavfilter/vf_geq.c
index 91eb9685f9..8b1c7726dc 100644
--- a/libavfilter/vf_geq.c
+++ b/libavfilter/vf_geq.c
@@ -88,8 +88,8 @@ static inline double getpix(void *priv, double x, double y, int plane)
if (!src)
return 0;
- xi = x = av_clipf(x, 0, w - 2);
- yi = y = av_clipf(y, 0, h - 2);
+ xi = x = av_clipd(x, 0, w - 2);
+ yi = y = av_clipd(y, 0, h - 2);
x -= xi;
y -= yi;