Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-05-19 00:27:20 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-05-19 00:59:02 +0300
commit7155bd1c94c285ac53e675c7f66acc28d7fa2a71 (patch)
treee2b0e75624bf8b9c35de5a7b0a9ce2e3556acbaf /libavcodec/m101.c
parentc0c378009b4ba5dea2ac1f93c972a6c84b2dff0d (diff)
avcodec/m101: Ask for samples with too small extradata_size
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/m101.c')
-rw-r--r--libavcodec/m101.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/m101.c b/libavcodec/m101.c
index 05546fcbe2..939d337bff 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;