diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-12-14 13:42:17 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-12-18 08:50:02 +0100 |
commit | 3dc319587f5bb96905f5984262e036c58a756c8c (patch) | |
tree | ccb240ffc7a22f718f3de8bef08148dc3b1185f1 /fftools/ffmpeg_filter.c | |
parent | 8a11724a0283a854896a0f9e551318211c038537 (diff) | |
download | ffmpeg-3dc319587f5bb96905f5984262e036c58a756c8c.tar.gz |
fftools/ffmpeg: deprecate -fps_mode/vsync drop
It depends on the ability of muxers to generate timestamps, which is
itself deprecated.
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r-- | fftools/ffmpeg_filter.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index bb755d7bb4..9fc877b437 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -2104,8 +2104,11 @@ static void video_sync_process(OutputFilterPriv *ofp, AVFrame *frame, if (delta0 < 0 && delta > 0 && - ost->vsync_method != VSYNC_PASSTHROUGH && - ost->vsync_method != VSYNC_DROP) { + ost->vsync_method != VSYNC_PASSTHROUGH +#if FFMPEG_OPT_VSYNC_DROP + && ost->vsync_method != VSYNC_DROP +#endif + ) { if (delta0 < -0.6) { av_log(ost, AV_LOG_VERBOSE, "Past duration %f too large\n", -delta0); } else @@ -2143,7 +2146,9 @@ static void video_sync_process(OutputFilterPriv *ofp, AVFrame *frame, ofp->next_pts = llrint(sync_ipts); frame->duration = llrint(duration); break; +#if FFMPEG_OPT_VSYNC_DROP case VSYNC_DROP: +#endif case VSYNC_PASSTHROUGH: ofp->next_pts = llrint(sync_ipts); frame->duration = llrint(duration); |