[FFmpeg-devel] [PATCH] cmdutils: slightly better -filters output.

Clément Bœsch ubitux at gmail.com
Wed Apr 17 11:33:28 CEST 2013


On Tue, Apr 16, 2013 at 10:30:07PM +0200, Stefano Sabatini wrote:
> On date Tuesday 2013-04-16 21:47:15 +0200, Clément Bœsch encoded:
> > ---
> >  cmdutils.c | 9 +++++++--
> >  1 file changed, 7 insertions(+), 2 deletions(-)
> > 
> > diff --git a/cmdutils.c b/cmdutils.c
> > index 4b625fd..5587a17 100644
> > --- a/cmdutils.c
> > +++ b/cmdutils.c
> > @@ -1453,7 +1453,11 @@ int show_filters(void *optctx, const char *opt, const char *arg)
> >      int i, j;
> >      const AVFilterPad *pad;
> >  
> > -    printf("Filters:\n");
> > +    printf("Filters:\n"
> > +           "  A = Audio input/output\n"
> > +           "  V = Video input/output\n"
> > +           "  N = Dynamic number and/or type of input/output\n"
> > +           "  | = Source or sink filter\n");
> >  #if CONFIG_AVFILTER
> >      while ((filter = avfilter_next(filter))) {
> >          descr_cur = descr;
> > @@ -1469,7 +1473,8 @@ int show_filters(void *optctx, const char *opt, const char *arg)
> >                  *(descr_cur++) = get_media_type_char(pad[j].type);
> >              }
> >              if (!j)
> > -                *(descr_cur++) = '|';
> > +                *(descr_cur++) = ((!i && (filter->flags & AVFILTER_FLAG_DYNAMIC_INPUTS)) ||
> > +                                  ( i && (filter->flags & AVFILTER_FLAG_DYNAMIC_OUTPUTS))) ? 'N' : '|';
> 
> LGTM, thanks.

Applied.

-- 
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/20130417/85963b9b/attachment.asc>


More information about the ffmpeg-devel mailing list