summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-29 18:43:28 +0200
committerwm4 <wm4@nowhere>2015-09-29 18:43:28 +0200
commitb4491c00c4b514e925b6bbf501e26de801f28a39 (patch)
tree9659ab40a27704295ed377f14e2d904df47f70d9 /sub
parent12cd48a8a9be94612a6645f27fc971d0aac985ff (diff)
downloadmpv-b4491c00c4b514e925b6bbf501e26de801f28a39.tar.bz2
mpv-b4491c00c4b514e925b6bbf501e26de801f28a39.tar.xz
Take care of libavcodec convergence_duration deprecation
This AVPacket field was a hack against the fact that the duration field was merely an int (too small for things like subtitle durations). Newer libavcodec drops this field and makes duration 64 bit.
Diffstat (limited to 'sub')
-rw-r--r--sub/sd_lavc_conv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sub/sd_lavc_conv.c b/sub/sd_lavc_conv.c
index 9da679905b..244c26e2dc 100644
--- a/sub/sd_lavc_conv.c
+++ b/sub/sd_lavc_conv.c
@@ -202,7 +202,9 @@ static int parse_webvtt(AVPacket *in, AVPacket *pkt)
pkt->pts = in->pts;
pkt->duration = in->duration;
+#if !HAVE_AV_AVPACKET_INT64_DURATION
pkt->convergence_duration = in->convergence_duration;
+#endif
return 0;
}