diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2022-06-07 17:36:54 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2022-06-11 09:47:27 +0530 |
commit | 09c53a04c5892baee88872fbce3df17a00472faa (patch) | |
tree | 8e64f2ce50389f81b476a9473af287b096884710 /fftools/ffmpeg_mux.c | |
parent | cb204f007be4b0cb32ec32b08f2fdfd798d339ea (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.c | 2 |
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; |