1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

fftools/ffmpeg: drop an obsolete hack

Introduced in 05741d70c7. All encoders should set the timestamps
properly now, so it should never be necessary.
This commit is contained in:
Anton Khirnov 2022-03-30 12:31:28 +02:00
parent 9a22c6508a
commit a8c95e1feb

View File

@ -1372,9 +1372,6 @@ static void do_video_out(OutputFile *of,
av_ts2str(pkt->duration), av_ts2timestr(pkt->duration, &enc->time_base));
}
if (pkt->pts == AV_NOPTS_VALUE && !(enc->codec->capabilities & AV_CODEC_CAP_DELAY))
pkt->pts = ost->sync_opts;
av_packet_rescale_ts(pkt, enc->time_base, ost->mux_timebase);
if (debug_ts) {