summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg_mux.c
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2022-06-07 17:36:54 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2022-06-11 09:47:27 +0530
commit09c53a04c5892baee88872fbce3df17a00472faa (patch)
tree8e64f2ce50389f81b476a9473af287b096884710 /fftools/ffmpeg_mux.c
parentcb204f007be4b0cb32ec32b08f2fdfd798d339ea (diff)
ffmpeg: add option fps_mode
fps_mode sets video sync per output stream. Overrides vsync for matching streams. vsync is deprecated.
Diffstat (limited to 'fftools/ffmpeg_mux.c')
-rw-r--r--fftools/ffmpeg_mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c
index 794d580635..a55fd18f8f 100644
--- a/fftools/ffmpeg_mux.c
+++ b/fftools/ffmpeg_mux.c
@@ -96,7 +96,7 @@ void of_write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost,
return;
}
- if ((st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && video_sync_method == VSYNC_DROP) ||
+ if ((st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && ost->vsync_method == VSYNC_DROP) ||
(st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO && audio_sync_method < 0))
pkt->pts = pkt->dts = AV_NOPTS_VALUE;