From: van Date: Sun, 17 May 2009 07:35:27 +0000 (+0000) Subject: Get rid of silence inserted at the beginning of mp4/mov/mkv files. GENPTS seems to... X-Git-Tag: 0.9.4~538 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6e052156455ffdec949459f0b3c478187ddcc37;p=handbrake Get rid of silence inserted at the beginning of mp4/mov/mkv files. GENPTS seems to do the wrong thing on files with real time stamps & inserts a delay equal to the audio/video interleave offset. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2424 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/stream.c b/libhb/stream.c index e9f60c431..1e49d76f5 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -2483,9 +2483,6 @@ static int ffmpeg_codec_param( hb_stream_t *stream, int stream_index ) // (the original scan stream was closed and no longer exists). static void ffmpeg_remap_stream( hb_stream_t *stream, hb_title_t *title ) { - // tell ffmpeg we want a pts on every frame it returns - stream->ffmpeg_ic->flags |= AVFMT_FLAG_GENPTS; - // all the video & audio came from the same stream so remapping // the video's stream slot takes care of everything. int slot = title->video_codec_param & (ffmpeg_sl_size - 1);