[FFmpeg-cvslog] ffmpeg: set VCFR when copying timestamps

Michael Niedermayer git at videolan.org
Thu Nov 28 02:49:14 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Nov 28 02:28:50 2013 +0100| [738ebb4a0e0c8fbdc83b44cf30b8c9b7ac866270] | committer: Michael Niedermayer

ffmpeg: set VCFR when copying timestamps

This fixes unreasonable initial frame repeats
Fixes Ticket3176

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=738ebb4a0e0c8fbdc83b44cf30b8c9b7ac866270
---

 ffmpeg.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index 554cde6..62a5487 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) {



More information about the ffmpeg-cvslog mailing list