Commit a6facfff authored by michael's avatar michael

cast to uint32 as the table is uint32_t, this also worksaround a gcc or libc bug related to frexp()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3997 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 80342761
......@@ -417,7 +417,7 @@ static int decode_init(AVCodecContext * avctx)
int e, m;
f = pow((double)(i/4), 4.0 / 3.0) * pow(2, (i&3)*0.25);
fm = frexp(f, &e);
m = FIXHR(fm*0.5);
m = (uint32_t)(fm*(1LL<<31) + 0.5);
e+= FRAC_BITS - 31 + 5;
/* normalized to FRAC_BITS */
......
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