ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Wed Jan 7 12:18:40 2015 +0100| [ad465e789721194a6bc08a0b02dbbd9b19960f41] | committer: Michael Niedermayer
avcodec/mpeg12: Try to fetch pts/dts from both the packet associated with the picture start code as well as earlier start codes Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ad465e789721194a6bc08a0b02dbbd9b19960f41 --- libavcodec/mpeg12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 153e4aa..3128e8d 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -234,7 +234,7 @@ int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size, } } if (pc->frame_start_found == 0 && s && state == PICTURE_START_CODE) { - ff_fetch_timestamp(s, i - 3, 1, 0); + ff_fetch_timestamp(s, i - 3, 1, i > 3); } } } _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
