Commit e20f4648 authored by Michael Niedermayer's avatar Michael Niedermayer

mpeg12: print an error when there was a frame in extradata.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6d376346
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment