summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-10-13 23:21:35 +0200
committerJames Almer <jamrial@gmail.com>2021-09-13 16:51:43 -0300
commitd7490ef341e253294aa0abf1e4ed8381c1b0ea91 (patch)
tree07a13e7581f01f3633d135ff99c59edb4b300c9b /libavfilter
parent8c9ff740a35d6f46935f70e4a9533dddaaf33788 (diff)
downloadffmpeg-d7490ef341e253294aa0abf1e4ed8381c1b0ea91.tar.gz
avfilter/vf_bwdif: fix heap-buffer overflow
Fixes #8261 (cherry picked from commit 8c3166e1c302c3ba80d9742ae46161c0fa8e2606) Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_bwdif.c4
1 files 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);
}