mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-07-17 17:06:08 +00:00
fftools/ffmpeg: Remove deprecated -vsync/fps_mode drop
Deprecated in commit 3dc319587f
on 2023-12-18.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -53,7 +53,6 @@
|
||||
|
||||
// deprecated features
|
||||
#define FFMPEG_OPT_TOP 1
|
||||
#define FFMPEG_OPT_VSYNC_DROP 1
|
||||
#define FFMPEG_OPT_VSYNC 1
|
||||
#define FFMPEG_OPT_FILTER_SCRIPT 1
|
||||
|
||||
@@ -65,9 +64,6 @@ enum VideoSyncMethod {
|
||||
VSYNC_CFR,
|
||||
VSYNC_VFR,
|
||||
VSYNC_VSCFR,
|
||||
#if FFMPEG_OPT_VSYNC_DROP
|
||||
VSYNC_DROP,
|
||||
#endif
|
||||
};
|
||||
|
||||
enum EncTimeBase {
|
||||
|
||||
@@ -2540,11 +2540,7 @@ static void video_sync_process(OutputFilterPriv *ofp, AVFrame *frame,
|
||||
|
||||
if (delta0 < 0 &&
|
||||
delta > 0 &&
|
||||
fps->vsync_method != VSYNC_PASSTHROUGH
|
||||
#if FFMPEG_OPT_VSYNC_DROP
|
||||
&& fps->vsync_method != VSYNC_DROP
|
||||
#endif
|
||||
) {
|
||||
fps->vsync_method != VSYNC_PASSTHROUGH) {
|
||||
if (delta0 < -0.6) {
|
||||
av_log(ofp, AV_LOG_VERBOSE, "Past duration %f too large\n", -delta0);
|
||||
} else
|
||||
@@ -2583,9 +2579,6 @@ 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);
|
||||
|
||||
@@ -139,11 +139,6 @@ static int mux_fixup_ts(Muxer *mux, MuxStream *ms, AVPacket *pkt)
|
||||
{
|
||||
OutputStream *ost = &ms->ost;
|
||||
|
||||
#if FFMPEG_OPT_VSYNC_DROP
|
||||
if (ost->type == AVMEDIA_TYPE_VIDEO && ms->ts_drop)
|
||||
pkt->pts = pkt->dts = AV_NOPTS_VALUE;
|
||||
#endif
|
||||
|
||||
// rescale timestamps to the stream timebase
|
||||
if (ost->type == AVMEDIA_TYPE_AUDIO && !ost->enc) {
|
||||
// use av_rescale_delta() for streamcopying audio, to preserve
|
||||
|
||||
@@ -81,9 +81,6 @@ typedef struct MuxStream {
|
||||
int copy_initial_nonkeyframes;
|
||||
int copy_prior_start;
|
||||
int streamcopy_started;
|
||||
#if FFMPEG_OPT_VSYNC_DROP
|
||||
int ts_drop;
|
||||
#endif
|
||||
|
||||
AVRational frame_rate;
|
||||
AVRational max_frame_rate;
|
||||
|
||||
@@ -810,10 +810,6 @@ static int new_stream_video(Muxer *mux, const OptionsContext *o,
|
||||
*vsync_method = VSYNC_VSCFR;
|
||||
}
|
||||
}
|
||||
#if FFMPEG_OPT_VSYNC_DROP
|
||||
if (*vsync_method == VSYNC_DROP)
|
||||
ms->ts_drop = 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -364,12 +364,6 @@ int parse_and_set_vsync(const char *arg, enum VideoSyncMethod *vsync_var, int fi
|
||||
if (!av_strcasecmp(arg, "cfr")) *vsync_var = VSYNC_CFR;
|
||||
else if (!av_strcasecmp(arg, "vfr")) *vsync_var = VSYNC_VFR;
|
||||
else if (!av_strcasecmp(arg, "passthrough")) *vsync_var = VSYNC_PASSTHROUGH;
|
||||
#if FFMPEG_OPT_VSYNC_DROP
|
||||
else if (!av_strcasecmp(arg, "drop")) {
|
||||
av_log(NULL, AV_LOG_WARNING, "-vsync/fps_mode drop is deprecated\n");
|
||||
*vsync_var = VSYNC_DROP;
|
||||
}
|
||||
#endif
|
||||
else if (!is_global && !av_strcasecmp(arg, "auto")) *vsync_var = VSYNC_AUTO;
|
||||
else if (!is_global) {
|
||||
av_log(NULL, AV_LOG_FATAL, "Invalid value %s specified for fps_mode of #%d:%d.\n", arg, file_idx, st_idx);
|
||||
|
||||
Reference in New Issue
Block a user