Mercurial > libavcodec.hg
comparison mpeg12.c @ 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 | 6d22c964c601 |
children | 2029a714b794 |
comparison
equal
deleted
inserted
replaced
11238:5401fc245167 | 11239:af94d2ee8831 |
---|---|
2202 pc->frame_start_found=0; | 2202 pc->frame_start_found=0; |
2203 pc->state=-1; | 2203 pc->state=-1; |
2204 return i-3; | 2204 return i-3; |
2205 } | 2205 } |
2206 } | 2206 } |
2207 if(s && state == PICTURE_START_CODE){ | 2207 if(pc->frame_start_found == 0 && s && state == PICTURE_START_CODE){ |
2208 ff_fetch_timestamp(s, i-3, 1); | 2208 ff_fetch_timestamp(s, i-3, 1); |
2209 } | 2209 } |
2210 } | 2210 } |
2211 } | 2211 } |
2212 pc->state= state; | 2212 pc->state= state; |