Commit 4e3303cf authored by Michael Niedermayer's avatar Michael Niedermayer

mpeg12dec: dont consider parsing extradata as having achived sync.

Fixes Ticket67
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c108a4aa
......@@ -2346,7 +2346,8 @@ static int decode_chunks(AVCodecContext *avctx,
case SEQ_START_CODE:
if (last_code == 0) {
mpeg1_decode_sequence(avctx, buf_ptr, input_size);
s->sync=1;
if(buf != avctx->extradata)
s->sync=1;
} else {
av_log(avctx, AV_LOG_ERROR, "ignoring SEQ_START_CODE after %X\n", last_code);
if (avctx->error_recognition >= FF_ER_EXPLODE)
......
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