None of the compiled binaries use any of libpostproc's symbols except
for trivial ones that print version information.  Thus the dependency
yields no benefit and it is preferable to drop it.
---
 Makefile   |    6 ++++--
 cmdutils.c |    2 --
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 720936a..3ae48c4 100644
--- a/Makefile
+++ b/Makefile
@@ -71,11 +71,13 @@ FFLIBS-$(CONFIG_AVDEVICE) += avdevice
 FFLIBS-$(CONFIG_AVFILTER) += avfilter
 FFLIBS-$(CONFIG_AVFORMAT) += avformat
 FFLIBS-$(CONFIG_AVCODEC)  += avcodec
-FFLIBS-$(CONFIG_POSTPROC) += postproc
 FFLIBS-$(CONFIG_SWSCALE)  += swscale
 
 FFLIBS := avutil
 
+SUBDIRS-$(CONFIG_POSTPROC) += postproc
+SUBDIRS                     = $(SUBDIRS-yes) $(FFLIBS)
+
 DATA_FILES := $(wildcard $(SRC_PATH)/ffpresets/*.ffpreset)
 
 SKIPHEADERS = cmdutils_common_opts.h
@@ -114,7 +116,7 @@ SUBDIR := $(1)/
 include $(SRC_PATH)/$(1)/Makefile
 endef
 
-$(foreach D,$(FFLIBS),$(eval $(call DOSUBDIR,lib$(D))))
+$(foreach D,$(SUBDIRS),$(eval $(call DOSUBDIR,lib$(D))))
 
 ffplay.o: CFLAGS += $(SDL_CFLAGS)
 ffplay$(EXESUF): FF_EXTRALIBS += $(SDL_LIBS)
diff --git a/cmdutils.c b/cmdutils.c
index 2124ca1..bbe11aa 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -33,7 +33,6 @@
 #include "libavfilter/avfilter.h"
 #include "libavdevice/avdevice.h"
 #include "libswscale/swscale.h"
-#include "libpostproc/postprocess.h"
 #include "libavutil/avstring.h"
 #include "libavutil/parseutils.h"
 #include "libavutil/pixdesc.h"
@@ -526,7 +525,6 @@ static void print_all_libs_info(FILE* outstream, int flags)
     PRINT_LIB_INFO(outstream, avdevice, AVDEVICE, flags);
     PRINT_LIB_INFO(outstream, avfilter, AVFILTER, flags);
     PRINT_LIB_INFO(outstream, swscale,  SWSCALE,  flags);
-    PRINT_LIB_INFO(outstream, postproc, POSTPROC, flags);
 }
 
 void show_banner(void)
-- 
1.7.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to