summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-05-18 23:27:20 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-05-18 23:59:02 +0200
commit7155bd1c94c285ac53e675c7f66acc28d7fa2a71 (patch)
treee2b0e75624bf8b9c35de5a7b0a9ce2e3556acbaf
parentc0c378009b4ba5dea2ac1f93c972a6c84b2dff0d (diff)
downloadffmpeg-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.c4
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;
OpenPOWER on IntegriCloud