]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_geq.c
avfilter/vf_geq: Use av_clipd() instead of av_clipf()
[ffmpeg] / libavfilter / vf_geq.c
index 91eb9685f9fe710cba9d7e2fd570374f0edc2ba0..8b1c7726dc84aa9244a90280e03cae9ef9d6cd30 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;