summaryrefslogtreecommitdiff
path: root/libavfilter/vf_geq.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-10-12 13:46:04 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-10-14 00:48:44 +0200
commitc8813b1a984714f0027cabeea2394035df20cf38 (patch)
tree55c4e1d5d58d36d9c2a03048b4cacaf0460969e7 /libavfilter/vf_geq.c
parent5056eb351117d7a794cc342130325749305cd4bc (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>
Diffstat (limited to 'libavfilter/vf_geq.c')
-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;