[FFmpeg-cvslog] r21949 - trunk/libavcodec/mpeg12.c

michael subversion
Mon Feb 22 00:22:51 CET 2010


Author: michael
Date: Mon Feb 22 00:22:51 2010
New Revision: 21949

Log:
Fix timestamp association for mpeg2 field pictures.
Fixes /MPlayer/incoming/codec_copy_fails_vob_to_mpeg-ts/codec_copy_fails_vob_to_mpeg-ts.vob

Modified:
   trunk/libavcodec/mpeg12.c

Modified: trunk/libavcodec/mpeg12.c
==============================================================================
--- trunk/libavcodec/mpeg12.c	Sun Feb 21 22:48:40 2010	(r21948)
+++ trunk/libavcodec/mpeg12.c	Mon Feb 22 00:22:51 2010	(r21949)
@@ -2204,7 +2204,7 @@ int ff_mpeg1_find_frame_end(ParseContext
                     return i-3;
                 }
             }
-            if(s && state == PICTURE_START_CODE){
+            if(pc->frame_start_found == 0 && s && state == PICTURE_START_CODE){
                 ff_fetch_timestamp(s, i-3, 1);
             }
         }



More information about the ffmpeg-cvslog mailing list