From 9145c6d3b2e6e051b7450bcb96bdb3267271936c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 4 Dec 2021 15:16:54 +0100 Subject: ffmpeg: move setting video sync method to new_video_stream() do_video_out() is the wrong place for it, since the necessary information is already known when creating the stream and its value should never change. --- fftools/ffmpeg.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fftools/ffmpeg.h') diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 83e37cbed7..9b200b806a 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -485,6 +485,7 @@ typedef struct OutputStream { /* video only */ AVRational frame_rate; AVRational max_frame_rate; + enum VideoSyncMethod vsync_method; int is_cfr; int force_fps; int top_field_first; -- cgit v1.2.3