diff mbox series

[FFmpeg-devel,01/49] fftools/ffmpeg: drop an obsolete hack

Message ID 20220404113037.13070-2-anton@khirnov.net
State Accepted
Commit a8c95e1febb9229cac8666872bfb35bf564cffda
Headers show
Series [FFmpeg-devel,01/49] fftools/ffmpeg: drop an obsolete hack | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov April 4, 2022, 11:29 a.m. UTC
Introduced in 05741d70c7a. All encoders should set the timestamps
properly now, so it should never be necessary.
---
 fftools/ffmpeg.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

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) {