From b14fac9afa79e44d8b0323c6ddbef1557cdd0d8d Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 24 Jan 2017 08:11:42 +0100 Subject: build: replace some FFmpeg API checks with version checks The FFmpeg versions we support all have the APIs we were checking for. Only Libav missed them. Simplify this by explicitly checking for FFmpeg in the code, instead of trying to detect the presence of the API. --- audio/filter/af_lavfi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/filter') diff --git a/audio/filter/af_lavfi.c b/audio/filter/af_lavfi.c index c072fdcb9a..55fb7cb0dc 100644 --- a/audio/filter/af_lavfi.c +++ b/audio/filter/af_lavfi.c @@ -246,7 +246,7 @@ static int control(struct af_instance *af, int cmd, void *arg) static void get_metadata_from_av_frame(struct af_instance *af, AVFrame *frame) { -#if HAVE_AVFRAME_METADATA +#if LIBAVUTIL_VERSION_MICRO >= 100 struct priv *p = af->priv; if (!p->metadata) p->metadata = talloc_zero(p, struct mp_tags); -- cgit v1.2.3