File ffmpeg-CVE-2020-20899.patch of Package ffmpeg.32491
diff --unified --recursive --text --new-file --color ffmpeg-3.4.2.old/libavfilter/vf_bwdif.c ffmpeg-3.4.2.new/libavfilter/vf_bwdif.c
--- ffmpeg-3.4.2.old/libavfilter/vf_bwdif.c 2021-10-14 17:00:34.543565150 +0800
+++ ffmpeg-3.4.2.new/libavfilter/vf_bwdif.c 2021-10-14 17:01:06.083629746 +0800
@@ -505,8 +505,8 @@
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);
}