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:
Anton Khirnov
2023-12-14 13:42:17 +01:00
parent 8a11724a02
commit 3dc319587f
5 changed files with 18 additions and 6 deletions

View File

@@ -150,8 +150,10 @@ static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
goto fail;
}
#if FFMPEG_OPT_VSYNC_DROP
if (ost->type == AVMEDIA_TYPE_VIDEO && ost->vsync_method == VSYNC_DROP)
pkt->pts = pkt->dts = AV_NOPTS_VALUE;
#endif
// rescale timestamps to the stream timebase
if (ost->type == AVMEDIA_TYPE_AUDIO && !ost->enc) {