[FFmpeg-devel] [PATCH] cmdutils: print command support in -filters.

Stefano Sabatini stefasab at gmail.com
Mon Sep 30 12:41:02 CEST 2013


On date Monday 2013-09-30 10:16:12 +0000, Paul B Mahol encoded:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>  cmdutils.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/cmdutils.c b/cmdutils.c
> index 79870ce..aea02c0 100644
> --- a/cmdutils.c
> +++ b/cmdutils.c
> @@ -1481,8 +1481,9 @@ int show_filters(void *optctx, const char *opt, const char *arg)
>      const AVFilterPad *pad;
>  
>      printf("Filters:\n"
> -           "  T. = Timeline support\n"
> -           "  .S = Slice threading\n"
> +           "  T.. = Timeline support\n"
> +           "  .S. = Slice threading\n"
> +           "  ..C = Commmand support\n"
>             "  A = Audio input/output\n"
>             "  V = Video input/output\n"
>             "  N = Dynamic number and/or type of input/output\n"
> @@ -1506,9 +1507,10 @@ int show_filters(void *optctx, const char *opt, const char *arg)
>                                    ( i && (filter->flags & AVFILTER_FLAG_DYNAMIC_OUTPUTS))) ? 'N' : '|';
>          }
>          *descr_cur = 0;
> -        printf(" %c%c %-16s %-10s %s\n",
> +        printf(" %c%c%c %-16s %-10s %s\n",
>                 filter->flags & AVFILTER_FLAG_SUPPORT_TIMELINE ? 'T' : '.',
>                 filter->flags & AVFILTER_FLAG_SLICE_THREADS    ? 'S' : '.',
> +               filter->process_command                        ? 'C' : '.',
>                 filter->name, descr, filter->description);
>      }
>  #endif

LGTM.
-- 
FFmpeg = Friendly Fabulous Meaningless Pitiless Enigmatic God


More information about the ffmpeg-devel mailing list