aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/srtenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-25 18:12:11 +0100
committerJames Almer <jamrial@gmail.com>2021-04-27 10:43:00 -0300
commitdf6b44182e1f52e6982a55e9720d9e46620a0d8a (patch)
treec669481a754992b97b0dc0bfea1b8f6ec85f1b77 /libavformat/srtenc.c
parent26ca5ebd7b5eb3d35562c2766755d765fdee0eef (diff)
downloadffmpeg-df6b44182e1f52e6982a55e9720d9e46620a0d8a.tar.gz
avcodec, avformat: Remove AVPacket.convergence_duration
Deprecated in 948f3c19a8bd069768ca411212aaf8c1ed96b10d. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/srtenc.c')
-rw-r--r--libavformat/srtenc.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libavformat/srtenc.c b/libavformat/srtenc.c
index 484dd4d230..9bb0ff94c1 100644
--- a/libavformat/srtenc.c
+++ b/libavformat/srtenc.c
@@ -73,13 +73,6 @@ static int srt_write_packet(AVFormatContext *avf, AVPacket *pkt)
y2 = AV_RL32(p + 12);
}
-#if FF_API_CONVERGENCE_DURATION
-FF_DISABLE_DEPRECATION_WARNINGS
- if (d <= 0)
- /* For backward compatibility, fallback to convergence_duration. */
- d = pkt->convergence_duration;
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif
if (s == AV_NOPTS_VALUE || d < 0) {
av_log(avf, AV_LOG_WARNING,
"Insufficient timestamps in event number %d.\n", srt->index);