From 23518c8922f6d29f5604b8e91b350088eeb0a755 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 8 Mar 2011 17:05:34 +0000 Subject: Remove a workaround for an ffmpeg bug that has been fixed. Removal of the workaround also removes the need for a patch that fails to apply cleanly to latest ffmpeg git. So remove the patch as well. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3833 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/stream.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'libhb/stream.c') diff --git a/libhb/stream.c b/libhb/stream.c index 4b4653760..3d80a590b 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -1452,17 +1452,6 @@ int hb_stream_seek_chapter( hb_stream_t * stream, int chapter_num ) { av_seek_frame( stream->ffmpeg_ic, -1, pos, 0); } - else - { - // ffmpeg has a bug that causes the first PTS after - // av_find_stream_info() is called to be incorrect. - // av_find_stream_info is called whenever opening a file - // with ffmpeg. av_seek_frame clears the condition - // that causes the problem. since hb_stream_seek_chapter - // is called before we start reading, make sure - // we do a seek here. - av_seek_frame( stream->ffmpeg_ic, -1, ffmpeg_initial_timestamp( stream ), AVSEEK_FLAG_BACKWARD | AVSEEK_FLAG_ANY ); - } return 1; } -- cgit v1.2.3