On 05/09/14 00:47, Diego Biurrun wrote:
> ---
> cmdutils.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/cmdutils.c b/cmdutils.c
> index 202b288..5c91e53 100644
> --- a/cmdutils.c
> +++ b/cmdutils.c
> @@ -1161,10 +1161,10 @@ int show_protocols(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;
>
> printf("Filters:\n");
> -#if CONFIG_AVFILTER
> while ((filter = avfilter_next(filter)))
> printf("%-16s %s\n", filter->name, filter->description);
> #endif
>
might be nicer
#if CONFIG_
...
#else
printf("No filters available: libavfilter disabled");
#endif
Or something like that.
lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel