diff --git a/cmdutils.c b/cmdutils.c
index 20291aaba49f9c02f654a3f6cb5153b4a2478659..4a646a20cbe7808a14715d82fed25174110f5bd5 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -30,21 +30,15 @@
 
 #include "config.h"
 #include "libavformat/avformat.h"
-#if CONFIG_AVFILTER
 #include "libavfilter/avfilter.h"
-#endif
 #include "libavdevice/avdevice.h"
 #include "libswscale/swscale.h"
-#if CONFIG_POSTPROC
 #include "libpostproc/postprocess.h"
-#endif
 #include "libavutil/avstring.h"
 #include "libavcodec/opt.h"
 #include "cmdutils.h"
 #include "version.h"
-#if CONFIG_NETWORK
 #include "libavformat/network.h"
-#endif
 
 #undef exit