mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 18:10:13 +01:00
fftools/ffmpeg: deprecate -fps_mode/vsync drop
It depends on the ability of muxers to generate timestamps, which is itself deprecated.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user