Skip to content

Commit

Permalink
avfilter/vf_bwdif: fix heap-buffer overflow
Browse files Browse the repository at this point in the history
Fixes #8261
  • Loading branch information
richardpl committed Oct 14, 2019
1 parent ce764a6 commit 8c3166e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavfilter/vf_bwdif.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ static int config_props(AVFilterLink *link)
if(yadif->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);
}

Expand Down

0 comments on commit 8c3166e

Please sign in to comment.