summaryrefslogtreecommitdiffstats
path: root/wscript
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 /wscript
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 'wscript')
-rw-r--r--wscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/wscript b/wscript
index f9f21c2be3..7de1c5855d 100644
--- a/wscript
+++ b/wscript
@@ -458,7 +458,13 @@ FFmpeg/Libav libraries. You need at least {0}. Aborting.".format(libav_versions_
'func': check_statement('libavutil/pixdesc.h',
'AVComponentDescriptor d; int x = d.depth',
use='libav'),
- }
+ }, {
+ 'name': 'av-avpacket-int64-duration',
+ 'desc': 'libavcodec 64 bit AVPacket.duration',
+ 'func': check_statement('libavcodec/avcodec.h',
+ 'int x[(int)sizeof(((AVPacket){0}).duration) - 7]',
+ use='libav'),
+ },
]
audio_output_features = [