[FFmpeg-cvslog] avfilter/vf_bwdif: fix heap-buffer overflow

Paul B Mahol git at videolan.org
Wed May 4 21:30:03 EEST 2022


ffmpeg | branch: release/3.4 | Paul B Mahol <onemda at gmail.com> | Sun Oct 13 23:21:35 2019 +0200| [16eb9939ea493b6ed3bfc726e4cba2dacdd2e2fa] | committer: Michael Niedermayer

avfilter/vf_bwdif: fix heap-buffer overflow

Fixes #8261

(cherry picked from commit 8c3166e1c302c3ba80d9742ae46161c0fa8e2606)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=16eb9939ea493b6ed3bfc726e4cba2dacdd2e2fa
---

 libavfilter/vf_bwdif.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_bwdif.c b/libavfilter/vf_bwdif.c
index b691983611..7290c9a4a2 100644
--- a/libavfilter/vf_bwdif.c
+++ b/libavfilter/vf_bwdif.c
@@ -505,8 +505,8 @@ static int config_props(AVFilterLink *link)
     if(s->mode&1)
         link->frame_rate = av_mul_q(link->src->inputs[0]->frame_rate, (AVRational){2,1});
 
-    if (link->w < 3 || link->h < 3) {
-        av_log(ctx, AV_LOG_ERROR, "Video of less than 3 columns or lines is not supported\n");
+    if (link->w < 3 || link->h < 4) {
+        av_log(ctx, AV_LOG_ERROR, "Video of less than 3 columns or 4 lines is not supported\n");
         return AVERROR(EINVAL);
     }
 



More information about the ffmpeg-cvslog mailing list