summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-04-01 10:13:13 +0200
committerwm4 <wm4@nowhere>2016-04-01 10:13:13 +0200
commit0d746522325923ff5926f3a3cd0024b679a8199f (patch)
tree1efddb92034bddfbea379f689ee0166c18a5f6fa /wscript
parentd0238711dc776aeee2509452202ba4748f863ee4 (diff)
downloadmpv-0d746522325923ff5926f3a3cd0024b679a8199f.tar.bz2
mpv-0d746522325923ff5926f3a3cd0024b679a8199f.tar.xz
build: fix AVCodecParameters FFmpeg API check
FFmpeg partially merged the API change. It added the AVCodecParameters definition, but not the AVCodecContext.codecpar field. The new code compiles only with the API fully merged, so adjust the check.
Diffstat (limited to 'wscript')
-rw-r--r--wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/wscript b/wscript
index 21682ae17f..cd1ff24cee 100644
--- a/wscript
+++ b/wscript
@@ -495,7 +495,7 @@ FFmpeg/Libav libraries. You need at least {0}. Aborting.".format(libav_versions_
'name': 'avcodec-has-codecpar',
'desc': 'libavcodec AVCodecParameters API',
'func': check_statement('libavcodec/avcodec.h',
- 'AVCodecParameters *p = NULL',
+ '(void)offsetof(AVCodecContext, codecpar)',
use='libav'),
},
]