|
|
@@ -2286,12 +2286,13 @@ static int mpeg_decode_frame(AVCodecContext *avctx, |
|
|
|
|
|
|
|
|
s->slice_count = 0; |
|
|
s->slice_count = 0; |
|
|
|
|
|
|
|
|
if (avctx->extradata && !avctx->frame_number) { |
|
|
|
|
|
|
|
|
if (avctx->extradata && !s->parsed_extra) { |
|
|
int ret = decode_chunks(avctx, picture, data_size, avctx->extradata, avctx->extradata_size); |
|
|
int ret = decode_chunks(avctx, picture, data_size, avctx->extradata, avctx->extradata_size); |
|
|
if(*data_size) { |
|
|
if(*data_size) { |
|
|
av_log(avctx, AV_LOG_ERROR, "picture in extradata\n"); |
|
|
av_log(avctx, AV_LOG_ERROR, "picture in extradata\n"); |
|
|
*data_size = 0; |
|
|
*data_size = 0; |
|
|
} |
|
|
} |
|
|
|
|
|
s->parsed_extra = 1; |
|
|
if (ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE)) |
|
|
if (ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE)) |
|
|
return ret; |
|
|
return ret; |
|
|
} |
|
|
} |
|
|
|