[Ffmpeg-cvslog] r6290 - trunk/libavcodec/mpegaudiodec.c

Rich Felker dalias
Tue Sep 19 18:38:27 CEST 2006


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...)

Rich





More information about the ffmpeg-cvslog mailing list