From 45345d9c41f1491e9809153dc3b3950fba560d89 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 5 Feb 2016 23:17:33 +0100 Subject: build: make libavfilter mandatory The complex filter support that will be added makes much more complex use of libavfilter, and I'm not going to bother with adding hacks to keep libavfilter optional. --- common/av_log.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'common') diff --git a/common/av_log.c b/common/av_log.c index 05542cd15a..7e0b271c81 100644 --- a/common/av_log.c +++ b/common/av_log.c @@ -36,15 +36,12 @@ #include #include #include +#include #if HAVE_LIBAVDEVICE #include #endif -#if HAVE_LIBAVFILTER -#include -#endif - #if HAVE_LIBAVRESAMPLE #include #endif @@ -161,10 +158,8 @@ void init_libav(struct mpv_global *global) avcodec_register_all(); av_register_all(); avformat_network_init(); - -#if HAVE_LIBAVFILTER avfilter_register_all(); -#endif + #if HAVE_LIBAVDEVICE avdevice_register_all(); #endif @@ -196,9 +191,7 @@ void print_libav_versions(struct mp_log *log, int v) {"libavcodec", LIBAVCODEC_VERSION_INT, avcodec_version()}, {"libavformat", LIBAVFORMAT_VERSION_INT, avformat_version()}, {"libswscale", LIBSWSCALE_VERSION_INT, swscale_version()}, -#if HAVE_LIBAVFILTER {"libavfilter", LIBAVFILTER_VERSION_INT, avfilter_version()}, -#endif #if HAVE_LIBAVRESAMPLE {"libavresample", LIBAVRESAMPLE_VERSION_INT, avresample_version()}, #endif -- cgit v1.2.3