]> git.sesse.net Git - ffmpeg/commitdiff
cmdutils: Fix build with lavfi disabled
authorAnton Khirnov <anton@khirnov.net>
Tue, 16 Apr 2013 14:09:16 +0000 (16:09 +0200)
committerDiego Biurrun <diego@biurrun.de>
Tue, 16 Apr 2013 19:44:26 +0000 (21:44 +0200)
Signed-off-by: Diego Biurrun <diego@biurrun.de>
cmdutils.c

index feee51ce51923e007339900ca2903586e36a84b7..62f38cc83ef483ff40a02a37d2c9cfe54931e112 100644 (file)
@@ -1268,6 +1268,7 @@ static void show_help_muxer(const char *name)
         show_help_children(fmt->priv_class, AV_OPT_FLAG_ENCODING_PARAM);
 }
 
+#if CONFIG_AVFILTER
 static void show_help_filter(const char *name)
 {
     const AVFilter *f = avfilter_get_by_name(name);
@@ -1305,6 +1306,7 @@ static void show_help_filter(const char *name)
         show_help_children(f->priv_class, AV_OPT_FLAG_VIDEO_PARAM |
                                           AV_OPT_FLAG_AUDIO_PARAM);
 }
+#endif
 
 int show_help(void *optctx, const char *opt, const char *arg)
 {
@@ -1326,8 +1328,10 @@ int show_help(void *optctx, const char *opt, const char *arg)
         show_help_demuxer(par);
     } else if (!strcmp(topic, "muxer")) {
         show_help_muxer(par);
+#if CONFIG_AVFILTER
     } else if (!strcmp(topic, "filter")) {
         show_help_filter(par);
+#endif
     } else {
         show_help_default(topic, par);
     }