From b4491c00c4b514e925b6bbf501e26de801f28a39 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 29 Sep 2015 18:43:28 +0200 Subject: 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. --- sub/sd_lavc_conv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sub') 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; } -- cgit v1.2.3