diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-05-18 23:27:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-05-18 23:59:02 +0200 |
commit | 7155bd1c94c285ac53e675c7f66acc28d7fa2a71 (patch) | |
tree | e2b0e75624bf8b9c35de5a7b0a9ce2e3556acbaf | |
parent | c0c378009b4ba5dea2ac1f93c972a6c84b2dff0d (diff) | |
download | ffmpeg-streaming-7155bd1c94c285ac53e675c7f66acc28d7fa2a71.zip ffmpeg-streaming-7155bd1c94c285ac53e675c7f66acc28d7fa2a71.tar.gz |
avcodec/m101: Ask for samples with too small extradata_size
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/m101.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |