Commit ae054d4d authored by michael's avatar michael

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6290 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5122e486
......@@ -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++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment