[MPlayer-dev-eng] mpegaudiodec.c and llrint

Ivo ivop at euronet.nl
Thu Apr 5 22:03:38 CEST 2007


On Thursday 05 April 2007 19:34, Andrea Palmatè wrote:
> Hi,
>
> i have a problem whn compiling libavcodec with CONFIG_MPEGAUDIO_HP
> and llrint function.
>
> Since i don't have llrint function on newlib on OS4 platform i've
> tried to replace it with:
>
> static inline long long int llrint(double x)
> {
>      return (long long int)rint( x );
> }
>
> but i have scratchy sound when play a file. Disabling MPEGAUDIO_HP
> and llrint function all is ok.
>
> Anyone has a replacemento of that function?

Google for llrint.c.

http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/src/llrint.c
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/src/lrint.c

(NetBSD's llrint is lrint with some different defines)

or the version of OpenSolaris:

http://www.koders.com/c/fidF5A6998A1EABC0074775B88E4CFE9213B0A28C4C.aspx

--Ivo



More information about the MPlayer-dev-eng mailing list