[vlc-devel] [vlc-commits] soxr: Fix static linking.

Rémi Denis-Courmont remi at remlab.net
Sat Nov 5 20:13:36 CET 2016


Le lauantaina 5. marraskuuta 2016, 20.07.26 EET Konstantin Pavlov a écrit :
> On Sat, Nov 05, 2016 at 06:31:50PM +0200, Rémi Denis-Courmont wrote:
> > Inclusion of <math.> looks like cargo cult here. If so, this patch is
> > wrong.
> No:
> 
>  283 static size_t
>  284 SoXR_GetOutLen( size_t i_ilen, double f_ratio )
>  285 {
>  286     /* Processed output len might be a little bigger than expected.
> Indeed SoXR 287      * can hold a few samples to meet the need of the
> resampling filter. */ 288     return lrint( ( i_ilen + 2 ) * f_ratio * 11.
> / 10. );
>  289 }

Oh, ok. I wonder how it did not fail to link at all previously then. It sounds 
like nobody ever tried on Linux.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list