diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-10-12 13:46:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-01-06 11:30:43 +0100 |
commit | f238fcdb3e4053faa5063ae26e77bec4d6d025b5 (patch) | |
tree | 00e3a92d109a41acbb81e5c4b01153102f965856 | |
parent | 6247243e071bed97ed9bbc9b8789101bb5a5893d (diff) | |
download | ffmpeg-f238fcdb3e4053faa5063ae26e77bec4d6d025b5.tar.gz |
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>
-rw-r--r-- | libavfilter/vf_geq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_geq.c b/libavfilter/vf_geq.c index 91eb9685f9..8b1c7726dc 100644 --- a/libavfilter/vf_geq.c +++ b/libavfilter/vf_geq.c @@ -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; |