[FFmpeg-devel] [PATCH] asrc_anullsrc: extend syntax to make it accept a non positional list of argument
michaelni at gmx.at
Sun Sep 18 03:18:21 CEST 2011
On Sun, Sep 18, 2011 at 03:04:53AM +0200, Stefano Sabatini wrote:
> On date Sunday 2011-09-18 02:06:22 +0200, Michael Niedermayer encoded:
> > On Sat, Sep 17, 2011 at 12:54:35PM +0200, Stefano Sabatini wrote:
> > > From: Stefano Sabatini <stefasab at gmail.com>
> > >
> > > The new syntax is more extensible and more user-friendly.
> > >
> > > This breaks the previous syntax, should not be an issue as possibly
> > > no-one is already using the anullsrc.
> > > ---
> > > doc/filters.texi | 26 ++++++++++++------
> > > libavfilter/asrc_anullsrc.c | 62 +++++++++++++++++++++++++++++-------------
> > > 2 files changed, 60 insertions(+), 28 deletions(-)
> > i liked the old syntax but if you prefer this new syntax then fine
> > with me
> My point is that I dislike the syntax:
thats a time :)
is the sample rate + the channel layout
> since it doesn't give a clue about what the parameters mean (and you
> need to check the docs, if unlucky the source). Also this becomes even
> worse when you have optional parameters which don't need to be
> explicitely set (with positional arguments you're forced to set them),
> if you need to add more parameters (as in this case) it becomes more
> and more clumsy and error prone.
> That's why I favor named parameters over positional ones.
i absolutely see your point but this filter has just 2 parameters
and one is real big and one is real small.
even if one specifies them the wrong way around the filter could detect
this, (consider 6 samples per second with 8000 channels)
anyway, as said i dont mind the change and patch if you prefer it this
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel