fftools/ffmpeg: mark -vsync for future removal

It has already been deprecated over a year ago.
This commit is contained in:
Anton Khirnov
2023-12-18 10:50:44 +01:00
parent 8d8c2b410f
commit 7f982065a8
3 changed files with 17 additions and 3 deletions

View File

@@ -756,7 +756,11 @@ static int new_stream_video(Muxer *mux, const OptionsContext *o,
av_log(ost, AV_LOG_WARNING, "-top is deprecated, use the setfield filter instead\n");
#endif
#if FFMPEG_OPT_VSYNC
ost->vsync_method = video_sync_method;
#else
ost->vsync_method = VSYNC_AUTO;
#endif
MATCH_PER_STREAM_OPT(fps_mode, str, fps_mode, oc, st);
if (fps_mode) {
ret = parse_and_set_vsync(fps_mode, &ost->vsync_method, ost->file->index, ost->index, 0);