Commit c8813b1a authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_geq: Use av_clipd() instead of av_clipf()

With floats we cannot represent all 32bit integer dimensions
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 5056eb35
...@@ -88,8 +88,8 @@ static inline double getpix(void *priv, double x, double y, int plane) ...@@ -88,8 +88,8 @@ static inline double getpix(void *priv, double x, double y, int plane)
if (!src) if (!src)
return 0; return 0;
xi = x = av_clipf(x, 0, w - 2); xi = x = av_clipd(x, 0, w - 2);
yi = y = av_clipf(y, 0, h - 2); yi = y = av_clipd(y, 0, h - 2);
x -= xi; x -= xi;
y -= yi; y -= yi;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment