File ffmpeg-CVE-2019-17542.patch of Package ffmpeg.27460
diff -Nura ffmpeg-3.4.2/libavcodec/vqavideo.c ffmpeg-3.4.2_new/libavcodec/vqavideo.c
--- ffmpeg-3.4.2/libavcodec/vqavideo.c 2018-02-12 00:29:05.000000000 +0000
+++ ffmpeg-3.4.2_new/libavcodec/vqavideo.c 2019-11-19 10:50:59.992000000 +0000
@@ -147,7 +147,7 @@
}
s->width = AV_RL16(&s->avctx->extradata[6]);
s->height = AV_RL16(&s->avctx->extradata[8]);
- if ((ret = av_image_check_size(s->width, s->height, 0, avctx)) < 0) {
+ if ((ret = ff_set_dimensions(avctx, s->width, s->height)) < 0) {
s->width= s->height= 0;
return ret;
}