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 c8813b1a98)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2019-10-12 13:46:04 +02:00
parent 6247243e07
commit f238fcdb3e
1 changed files with 2 additions and 2 deletions

View File

@ -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;