avfilter/vf_geq: Use av_clipd() instead of av_clipf()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Oct 2019 11:46:04 +0000 (13:46 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 13 Oct 2019 22:48:44 +0000 (00:48 +0200)
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>
libavfilter/vf_geq.c

index 91eb968..8b1c772 100644 (file)
@@ -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;