summaryrefslogtreecommitdiff
path: root/libavformat/srtenc.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-09-29 15:14:59 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2015-09-29 15:22:52 +0200
commitb01891a9f08b9d271d75d179b3138242a958ee04 (patch)
tree6180f466be7e17e8059b3ab69a1fb5d95e776e32 /libavformat/srtenc.c
parentd3e5fbb1406995e07fccbff3ca8c1e24f57a1f7b (diff)
parent948f3c19a8bd069768ca411212aaf8c1ed96b10d (diff)
downloadffmpeg-b01891a9f08b9d271d75d179b3138242a958ee04.tar.gz
Merge commit '948f3c19a8bd069768ca411212aaf8c1ed96b10d'
* commit '948f3c19a8bd069768ca411212aaf8c1ed96b10d': lavc: Make AVPacket.duration int64, and deprecate convergence_duration Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavformat/srtenc.c')
-rw-r--r--libavformat/srtenc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/srtenc.c b/libavformat/srtenc.c
index 9bb83d645d..0b2a16bc4f 100644
--- a/libavformat/srtenc.c
+++ b/libavformat/srtenc.c
@@ -73,9 +73,13 @@ 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);