[FFmpeg-devel] [PATCH] cmdutils: show timeline support in -filters listing

Clément Bœsch ubitux at gmail.com
Sun May 19 19:43:38 CEST 2013


On Sun, May 19, 2013 at 05:30:57PM +0200, Stefano Sabatini wrote:
> ---
>  cmdutils.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/cmdutils.c b/cmdutils.c
> index f5cddb1..5426349 100644
> --- a/cmdutils.c
> +++ b/cmdutils.c
> @@ -1454,6 +1454,7 @@ int show_filters(void *optctx, const char *opt, const char *arg)
>      const AVFilterPad *pad;
>  
>      printf("Filters:\n"
> +           "  T = Timeline support\n"
>             "  A = Audio input/output\n"
>             "  V = Video input/output\n"
>             "  N = Dynamic number and/or type of input/output\n"
> @@ -1477,7 +1478,8 @@ int show_filters(void *optctx, const char *opt, const char *arg)
>                                    ( i && (filter->flags & AVFILTER_FLAG_DYNAMIC_OUTPUTS))) ? 'N' : '|';
>          }
>          *descr_cur = 0;
> -        printf("%-16s %-10s %s\n", filter->name, descr, filter->description);
> +        printf(" %c %-16s %-10s %s\n", filter->flags & AVFILTER_FLAG_SUPPORT_TIMELINE ? 'T' : '.',
> +               filter->name, descr, filter->description);
>      }
>  #endif
>      return 0;

Fine with me. We can consider a more relevant captioning when we will need
to print more flags.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130519/70f73f84/attachment.asc>


More information about the ffmpeg-devel mailing list