diff --git a/qb/config.libs.sh b/qb/config.libs.sh index e675fd1348..23e191d0f8 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -183,6 +183,9 @@ if [ "$HAVE_THREADS" != 'no' ]; then check_pkgconf AVCODEC libavcodec 54 check_pkgconf AVFORMAT libavformat 54 check_pkgconf AVUTIL libavutil 51 + if [ "$HAVE_AVUTIL" = 'yes' ]; then + check_header AVUTIL_CHANNEL_LAYOUT libavutil/channel_layout.h + fi check_pkgconf SWSCALE libswscale 2.1 ( [ "$HAVE_FFMPEG" = 'auto' ] && ( [ "$HAVE_AVCODEC" = 'no' ] || [ "$HAVE_AVFORMAT" = 'no' ] || [ "$HAVE_AVUTIL" = 'no' ] || [ "$HAVE_SWSCALE" = 'no' ] ) && HAVE_FFMPEG='no' ) || HAVE_FFMPEG='yes' fi diff --git a/record/ffemu.c b/record/ffemu.c index 7c51b919ec..1e60e33d15 100644 --- a/record/ffemu.c +++ b/record/ffemu.c @@ -27,7 +27,9 @@ extern "C" { #include #include #include +#ifdef AVUTIL_CHANNEL_LAYOUT #include +#endif #include #ifdef __cplusplus }