changeset 11239:af94d2ee8831 libavcodec

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
author michael
date Sun, 21 Feb 2010 23:22:51 +0000
parents 5401fc245167
children 74f7086f532a
files mpeg12.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Sun Feb 21 21:48:40 2010 +0000
+++ b/mpeg12.c	Sun Feb 21 23:22:51 2010 +0000
@@ -2204,7 +2204,7 @@
                     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);
             }
         }