diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-10-12 13:46:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-11-11 20:18:48 +0100 |
commit | d8658b51b75c0c57d9f72014590ca12ac1831436 (patch) | |
tree | b6717350282f7c4db8081e73e105d83bb9efd6e7 /libavfilter | |
parent | 448b4cbefeb378a51acb07c4837dec92aa61ff2f (diff) | |
download | ffmpeg-d8658b51b75c0c57d9f72014590ca12ac1831436.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>
Diffstat (limited to 'libavfilter')
-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 2aa1259c9a..f2ed830c0e 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; |