mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
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 c8813b1a984714f0027cabeea2394035df20cf38) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
25a917e46f
commit
386b987f2a
@ -82,8 +82,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user