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
dcadec: replace ldexpf with a multiplication by a constant
Signed-off-by: Anton Khirnov <anton@khirnov.net>
tags/n2.3
Niels Möller
Anton Khirnov
11 years ago
parent
44671b5786
commit
f2ce63246f
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavcodec/dcadec.c
+ 1
- 1
libavcodec/dcadec.c
View File
@@ -1699,7 +1699,7 @@ static float dca_dmix_code(unsigned code)
{
int sign = (code >> 8) - 1;
code &= 0xff;
return
ldexpf((dca_dmixtable[code] ^ sign) - sign, -15
);
return
((dca_dmixtable[code] ^ sign) - sign) * (1.0 / (1U << 15)
);
}
/**
Write
Preview
Loading…
Cancel
Save