diff --git a/libaf/Makefile b/libaf/Makefile index 26671d327a..8c72f4fec4 100644 --- a/libaf/Makefile +++ b/libaf/Makefile @@ -14,7 +14,6 @@ SRCS=af.c \ af_format.c \ af_gate.c \ af_hrtf.c \ - af_lavcresample.c \ af_pan.c \ af_resample.c \ af_sub.c \ @@ -34,6 +33,10 @@ LIBAV_INC += -I../libavutil endif ifeq ($(CONFIG_LIBAVCODEC),yes) LIBAV_INC += -I../libavcodec +SRCS+=af_lavcresample.c +endif +ifeq ($(CONFIG_LIBAVCODEC_SO),yes) +SRCS+=af_lavcresample.c endif OBJS=$(SRCS:.c=.o) diff --git a/libaf/af_lavcresample.c b/libaf/af_lavcresample.c index 0c92385c91..c988aa671a 100644 --- a/libaf/af_lavcresample.c +++ b/libaf/af_lavcresample.c @@ -9,8 +9,6 @@ #include "config.h" #include "af.h" -#ifdef USE_LIBAVCODEC - #ifdef USE_LIBAVCODEC_SO #include #include @@ -188,4 +186,3 @@ af_info_t af_info_lavcresample = { AF_FLAGS_REENTRANT, open }; -#endif