This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
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
tags/v0.5
Michael Niedermayer
20 years ago
parent
a54ea19a52
commit
f86f4481d8
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavcodec/mpegaudiodec.c
+ 1
- 1
libavcodec/mpegaudiodec.c
View File
@@ -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 */
Write
Preview
Loading…
Cancel
Save