From 738ebb4a0e0c8fbdc83b44cf30b8c9b7ac866270 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michaelni@gmx.at> Date: Thu, 28 Nov 2013 02:28:50 +0100 Subject: [PATCH] ffmpeg: set VCFR when copying timestamps This fixes unreasonable initial frame repeats Fixes Ticket3176 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- ffmpeg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 554cde6c87c..62a548761cf 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -833,6 +833,9 @@ static void do_video_out(AVFormatContext *s, && input_files[ist->file_index]->input_ts_offset == 0) { format_video_sync = VSYNC_VSCFR; } + if (format_video_sync == VSYNC_CFR && copy_ts) { + format_video_sync = VSYNC_VSCFR; + } } switch (format_video_sync) { -- GitLab