From 2e1cdcb9e6263a7ca16151713338176ef7b1ee06 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sun, 11 Dec 2011 07:48:26 +0200 Subject: configure, build: remove --disable-libav support Remove support for building the player without libavcodec and libavformat. These libraries are now always required. --- av_log.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'av_log.c') diff --git a/av_log.c b/av_log.c index 7c6307d274..bccbff54de 100644 --- a/av_log.c +++ b/av_log.c @@ -29,12 +29,10 @@ #include #include -#ifdef CONFIG_FFMPEG #include #include #include #include -#endif static int av_log_level_to_mp_level(int av_level) { @@ -64,7 +62,6 @@ static int extract_msg_type_from_ctx(void *ptr) return MSGT_FIXME; } -#ifdef CONFIG_FFMPEG if (!strcmp(avc->class_name, "AVCodecContext")) { AVCodecContext *s = ptr; if (s->codec) { @@ -89,7 +86,6 @@ static int extract_msg_type_from_ctx(void *ptr) return MSGT_MUXER; return MSGT_FIXME; } -#endif return MSGT_FIXME; } @@ -115,12 +111,11 @@ static void mp_msg_av_log_callback(void *ptr, int level, const char *fmt, void init_libav(void) { av_log_set_callback(mp_msg_av_log_callback); -#ifdef CONFIG_FFMPEG + avcodec_init(); avcodec_register_all(); av_register_all(); -#endif } #define V(x) (x)>>16, (x)>>8 & 255, (x) & 255 @@ -139,10 +134,8 @@ static void print_version(char *name, unsigned buildv, unsigned runv) void print_libav_versions(void) { print_version("libavutil", LIBAVUTIL_VERSION_INT, avutil_version()); -#ifdef CONFIG_FFMPEG print_version("libavcodec", LIBAVCODEC_VERSION_INT, avcodec_version()); print_version("libavformat", LIBAVFORMAT_VERSION_INT, avformat_version()); print_version("libswscale", LIBSWSCALE_VERSION_INT, swscale_version()); print_version("libpostproc", LIBPOSTPROC_VERSION_INT, postproc_version()); -#endif } -- cgit v1.2.3