Also avoid an unused variable warning for compilers w/o av_unused support.
Diego Biurrun authored on 2014/09/03 06:25:33... | ... |
@@ -1161,12 +1161,14 @@ int show_protocols(void *optctx, const char *opt, const char *arg) |
1161 | 1161 |
|
1162 | 1162 |
int show_filters(void *optctx, const char *opt, const char *arg) |
1163 | 1163 |
{ |
1164 |
- const AVFilter av_unused(*filter) = NULL; |
|
1164 |
+#if CONFIG_AVFILTER |
|
1165 |
+ const AVFilter *filter = NULL; |
|
1165 | 1166 |
|
1166 | 1167 |
printf("Filters:\n"); |
1167 |
-#if CONFIG_AVFILTER |
|
1168 | 1168 |
while ((filter = avfilter_next(filter))) |
1169 | 1169 |
printf("%-16s %s\n", filter->name, filter->description); |
1170 |
+#else |
|
1171 |
+ printf("No filters available: libavfilter disabled\n"); |
|
1170 | 1172 |
#endif |
1171 | 1173 |
return 0; |
1172 | 1174 |
} |