meson: Include libav dependency in FFmpeg check

The FFmpeg-origin check can't work if it isn't provided the
dependency library.

https://bugzilla.gnome.org/show_bug.cgi?id=773911
This commit is contained in:
Scott D Phillips 2016-11-03 12:43:46 -07:00 committed by Thibault Saunier
parent 7f39f69c7c
commit 3423d0f553

View file

@ -25,7 +25,7 @@ check_ffmpeg_src = '''#include <libavcodec/avcodec.h>
#error libav provider should be FFmpeg
#endif'''
if not cc.compiles(check_ffmpeg_src, name : 'libav is provided by FFmpeg')
if not cc.compiles(check_ffmpeg_src, dependencies : libav_deps, name : 'libav is provided by FFmpeg')
error('Uncompatible libavcodec found')
endif