[FFmpeg-cvslog] mpeg12dec: dont consider parsing extradata as having achived sync.

Michael Niedermayer git at videolan.org
Tue Oct 18 14:17:29 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct 18 13:56:29 2011 +0200| [4e3303cf3162ec38f39fe2f264e8d5c845e30d2b] | committer: Michael Niedermayer

mpeg12dec: dont consider parsing extradata as having achived sync.
Fixes Ticket67

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e3303cf3162ec38f39fe2f264e8d5c845e30d2b
---

 libavcodec/mpeg12.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 6dcecf7..ead7349 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)



More information about the ffmpeg-cvslog mailing list