[Ffmpeg-cvslog] r6290 - trunk/libavcodec/mpegaudiodec.c
Michael Niedermayer
michaelni
Wed Sep 20 12:03:26 CEST 2006
Hi
On Tue, Sep 19, 2006 at 12:38:27PM -0400, Rich Felker wrote:
> On Tue, Sep 19, 2006 at 11:31:00AM +0200, michael wrote:
> > Author: michael
> > Date: Tue Sep 19 11:31:00 2006
> > New Revision: 6290
> >
> > Modified:
> > trunk/libavcodec/mpegaudiodec.c
> >
> > Log:
> > use correct rounding functions
> > this should fix a floating point exception on some systems
> > lets hope these arent missing anywhere, if so another solution must be found
>
> I suspect they are missing on many systems since they're C99-only (C89
> does not even have long long). Why not just cast to (long long)? (Yes
> long long is also added in C99 but that's a compiler feature as
> opposed to a libm feature and systems are more likely to have a C99
> compiler or older gcc with long long than to have a C99 libm...)
feel free to replace this by (int64_t)(x + 0.5) or similar
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-cvslog
mailing list