OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0c3780
)
avcodec/m101: Ask for samples with too small extradata_size
author
Michael Niedermayer
<michael@niedermayer.cc>
Wed, 18 May 2016 21:27:20 +0000
(23:27 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Wed, 18 May 2016 21:59:02 +0000
(23:59 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/m101.c
patch
|
blob
|
history
diff --git
a/libavcodec/m101.c
b/libavcodec/m101.c
index
05546fc
..
939d337
100644
(file)
--- 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;