summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-09-19 09:31:00 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-09-19 09:31:00 +0000
commit39e1b5cf8e0ecaa0e7b8f3192d402ee361860e37 (patch)
treeb1405649f3d80ff3ed9cdd30d0a6a5436ebd35ac /libavcodec/mpegaudiodec.c
parent7a9d265b1460faed6ab456393f59c4cc7928ddf1 (diff)
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 Originally committed as revision 6290 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r--libavcodec/mpegaudiodec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index de0fa8dbef..178bb09f8a 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -430,9 +430,9 @@ static int decode_init(AVCodecContext * avctx)
for(i=0; i<512*16; i++){
int exponent= (i>>4);
double f= pow(i&15, 4.0 / 3.0) * pow(2, (exponent-400)*0.25 + FRAC_BITS + 5);
- expval_table[exponent][i&15]= lrintf(f);
+ expval_table[exponent][i&15]= llrint(f);
if((i&15)==1)
- exp_table[exponent]= lrintf(f);
+ exp_table[exponent]= llrint(f);
}
for(i=0;i<7;i++) {