[FFmpeg-devel] [PATCH] avfilter: add signalstats filter

Clément Bœsch u at pkh.me
Wed Jun 11 00:03:20 CEST 2014


On Wed, Jun 11, 2014 at 12:01:10AM +0200, Clément Bœsch wrote:
[...]
> > > +    lowp   = s->fs  * 10 / 100;
> > > +    highp  = s->fs  * 90 / 100;
> > > +    clowp  = s->cfs * 10 / 100;
> > > +    chighp = s->cfs * 90 / 100;
> > 
> > is the rounding toward 0 instead of nearest intentional ?
> > 
> 
> Changed locally into:
> 
>     lowp   = lrint(s->fs  * 10 / 100);
>     highp  = lrint(s->fs  * 90 / 100);
>     clowp  = lrint(s->cfs * 10 / 100);
>     chighp = lrint(s->cfs * 90 / 100);
> 

Dafuck I'm smoking here. Forget this.

[...]

-- 
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: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140611/98c710ab/attachment.asc>


More information about the ffmpeg-devel mailing list