aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-03-02 20:46:06 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-03-02 20:46:06 +0000
commitf86f4481d87101a9a621e5ee7952e1ff15ea364c (patch)
treea48b24951c050f8a9da51079791d599f401ff270
parenta54ea19a5278f462460f0f22d58c6b9d9030b254 (diff)
downloadffmpeg-f86f4481d87101a9a621e5ee7952e1ff15ea364c.tar.gz
cast to uint32 as the table is uint32_t, this also worksaround a gcc or libc bug related to frexp()
Originally committed as revision 3997 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegaudiodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index d828ed65e9..196d77d2a6 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -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 */