Commit 9ac08d93 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '2dd09ebf'

* commit '2dd09ebf':
  cmdutils: Print a more sensible message in show_filters() w/o libavfilter

Conflicts:
	cmdutils.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 85f2c012 2dd09ebf
...@@ -1543,7 +1543,8 @@ int show_protocols(void *optctx, const char *opt, const char *arg) ...@@ -1543,7 +1543,8 @@ int show_protocols(void *optctx, const char *opt, const char *arg)
int show_filters(void *optctx, const char *opt, const char *arg) int show_filters(void *optctx, const char *opt, const char *arg)
{ {
const AVFilter av_unused(*filter) = NULL; #if CONFIG_AVFILTER
const AVFilter *filter = NULL;
char descr[64], *descr_cur; char descr[64], *descr_cur;
int i, j; int i, j;
const AVFilterPad *pad; const AVFilterPad *pad;
...@@ -1556,7 +1557,6 @@ int show_filters(void *optctx, const char *opt, const char *arg) ...@@ -1556,7 +1557,6 @@ int show_filters(void *optctx, const char *opt, const char *arg)
" V = Video input/output\n" " V = Video input/output\n"
" N = Dynamic number and/or type of input/output\n" " N = Dynamic number and/or type of input/output\n"
" | = Source or sink filter\n"); " | = Source or sink filter\n");
#if CONFIG_AVFILTER
while ((filter = avfilter_next(filter))) { while ((filter = avfilter_next(filter))) {
descr_cur = descr; descr_cur = descr;
for (i = 0; i < 2; i++) { for (i = 0; i < 2; i++) {
...@@ -1581,6 +1581,8 @@ int show_filters(void *optctx, const char *opt, const char *arg) ...@@ -1581,6 +1581,8 @@ int show_filters(void *optctx, const char *opt, const char *arg)
filter->process_command ? 'C' : '.', filter->process_command ? 'C' : '.',
filter->name, descr, filter->description); filter->name, descr, filter->description);
} }
#else
printf("No filters available: libavfilter disabled\n");
#endif #endif
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment