Commit 738ebb4a authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: set VCFR when copying timestamps

This fixes unreasonable initial frame repeats
Fixes Ticket3176
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0075a22f
...@@ -833,6 +833,9 @@ static void do_video_out(AVFormatContext *s, ...@@ -833,6 +833,9 @@ static void do_video_out(AVFormatContext *s,
&& input_files[ist->file_index]->input_ts_offset == 0) { && input_files[ist->file_index]->input_ts_offset == 0) {
format_video_sync = VSYNC_VSCFR; format_video_sync = VSYNC_VSCFR;
} }
if (format_video_sync == VSYNC_CFR && copy_ts) {
format_video_sync = VSYNC_VSCFR;
}
} }
switch (format_video_sync) { switch (format_video_sync) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment