On Tue, Mar 25, 2014 at 11:40:48PM -0400, Justin Ruggles wrote:
> On 03/25/2014 09:55 AM, Alessandro Ghedini wrote:
> > This adds a new "replaygain-preamp" option to the filter, and simply adds 
> > its
> > value to the replaygain gain value.
> > ---
> >  doc/filters.texi        | 6 ++++++
> >  libavfilter/af_volume.c | 4 +++-
> >  libavfilter/af_volume.h | 1 +
> >  3 files changed, 10 insertions(+), 1 deletion(-)
> > 
> > diff --git a/doc/filters.texi b/doc/filters.texi
> > index 93625c6..4a737ef 100644
> > --- a/doc/filters.texi
> > +++ b/doc/filters.texi
> > @@ -633,6 +633,12 @@ Prefer track gain, if present.
> >  @item album
> >  Prefer album gain, if present.
> >  @end table
> > +
> > +@item replaygain-preamp
> > +Pre-amplification gain in dB to apply to the selected replaygain gain.
> > +
> > +Default value for @var{replaygain-preamp} is 0.0.
> > +
> >  @end table
> >  
> >  @subsection Examples
> > diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c
> > index 165624e..3ad1850 100644
> > --- a/libavfilter/af_volume.c
> > +++ b/libavfilter/af_volume.c
> > @@ -59,6 +59,8 @@ static const AVOption options[] = {
> >          { "ignore", "replaygain side data is ignored", 0, 
> > AV_OPT_TYPE_CONST, { .i64 = REPLAYGAIN_IGNORE }, 0, 0, A, "replaygain" },
> >          { "track",  "track gain is preferred",         0, 
> > AV_OPT_TYPE_CONST, { .i64 = REPLAYGAIN_TRACK  }, 0, 0, A, "replaygain" },
> >          { "album",  "album gain is preferred",         0, 
> > AV_OPT_TYPE_CONST, { .i64 = REPLAYGAIN_ALBUM  }, 0, 0, A, "replaygain" },
> > +    { "replaygain-preamp", "Apply replaygain pre-amplification",
> > +            OFFSET(replaygain_preamp), AV_OPT_TYPE_DOUBLE, { .dbl = 0.0 }, 
> > 0, 0x7fffff, A },
> 
> That's an odd-looking maximum. Any particular reason for that value?

Nope. It should be -15..+15, but I forgot to change it. Thanks.

-- 
perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to