1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00

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.
This commit is contained in:
wm4 2016-04-01 10:13:13 +02:00
parent d0238711dc
commit 0d74652232

View File

@ -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'),
},
]