[Ffmpeg-devel] llrint() in Cygwin
Fri Jan 26 15:10:16 CET 2007
Thomas Raivio said:
> llrint() is not defined in Cygwin and the function is used in
> libavcodec/mpegaudiodec.c. I propose changing llrint() to rint() in this
This needs to be fixed, but using rint() is not the correct solution.
Could someone please investigate the actual range of the values involved?
Also, what is the correct rounding for these numbers? The rint() family of
functions will round differently depending on application settings.
It is quite possible that a simple (uint32_t)(x + 0.5) will do the right thing.
mru at inprovide.com
More information about the ffmpeg-devel