ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Wed May 18 23:27:20 2016 +0200| [7155bd1c94c285ac53e675c7f66acc28d7fa2a71] | committer: Michael Niedermayer
avcodec/m101: Ask for samples with too small extradata_size Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7155bd1c94c285ac53e675c7f66acc28d7fa2a71 --- libavcodec/m101.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/m101.c b/libavcodec/m101.c index 05546fc..939d337 100644 --- a/libavcodec/m101.c +++ b/libavcodec/m101.c @@ -26,8 +26,10 @@ static av_cold int m101_decode_init(AVCodecContext *avctx) { - if (avctx->extradata_size < 6*4) + if (avctx->extradata_size < 6*4) { + avpriv_request_sample(avctx, "Missing or too small extradata (size %d)\n", avctx->extradata_size); return AVERROR_INVALIDDATA; + } if (avctx->extradata[2*4] == 10) avctx->pix_fmt = AV_PIX_FMT_YUV422P10; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog