diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-11 18:37:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-11 18:46:56 +0200 |
commit | e20f46481bc8f51fe55e9ee1657aced939d8552f (patch) | |
tree | 15749cb05c471b3b6629a1957f43d8e49a6dd8cb /libavcodec/mpeg12.c | |
parent | 6d376346ebdcbe1ad8b265b2eb7d0de59d24bb1a (diff) | |
download | ffmpeg-e20f46481bc8f51fe55e9ee1657aced939d8552f.tar.gz |
mpeg12: print an error when there was a frame in extradata.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index b5f914cc8a..30456e9036 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2288,7 +2288,10 @@ static int mpeg_decode_frame(AVCodecContext *avctx, if (avctx->extradata && !avctx->frame_number) { int ret = decode_chunks(avctx, picture, data_size, avctx->extradata, avctx->extradata_size); - *data_size = 0; + if(*data_size) { + av_log(avctx, AV_LOG_ERROR, "picture in extradata\n"); + *data_size = 0; + } if (ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE)) return ret; } |