aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-18 13:56:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-18 13:56:29 +0200
commit4e3303cf3162ec38f39fe2f264e8d5c845e30d2b (patch)
treee212b7e032603994e5845eb301324818f901ef33
parentc108a4aa1e30d9526308dc8d0869c5fe7198eb8e (diff)
downloadffmpeg-4e3303cf3162ec38f39fe2f264e8d5c845e30d2b.tar.gz
mpeg12dec: dont consider parsing extradata as having achived sync.
Fixes Ticket67 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mpeg12.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 6dcecf7b0c..ead734939d 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -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)