From 0d746522325923ff5926f3a3cd0024b679a8199f Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Apr 2016 10:13:13 +0200 Subject: 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. --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'), }, ] -- cgit v1.2.3