aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-03-30 12:31:28 +0200
committerAnton Khirnov <anton@khirnov.net>2022-04-13 12:07:54 +0200
commita8c95e1febb9229cac8666872bfb35bf564cffda (patch)
treea14e5a1a4c81f472f8aab93aa14b7b5aa74c3404
parent9a22c6508a413f62080801c2d08b24d064719fcb (diff)
downloadffmpeg-a8c95e1febb9229cac8666872bfb35bf564cffda.tar.gz
fftools/ffmpeg: drop an obsolete hack
Introduced in 05741d70c7a. All encoders should set the timestamps properly now, so it should never be necessary.
-rw-r--r--fftools/ffmpeg.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 6d62bdc7b0..afa1b012a6 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -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) {