diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-23 22:15:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-23 22:19:11 +0200 |
commit | 9ccb5455ca8c63eb330abd3c2ed6a9b0ae3b755e (patch) | |
tree | 37e1b505e2ad7b89c282b0b616dff44e353bb09c | |
parent | 6da06ef6bbc01b713f67ffb94e7697eb2393ebe4 (diff) | |
download | ffmpeg-9ccb5455ca8c63eb330abd3c2ed6a9b0ae3b755e.tar.gz |
avcodec/dcadec: use a constant instead of assuming every compiler can optimize pow(2,-15)
Idea-by: nevcairiel and wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/dcadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c index 684294e8bf..c072044453 100644 --- a/libavcodec/dcadec.c +++ b/libavcodec/dcadec.c @@ -2107,7 +2107,7 @@ static float dca_dmix_code(unsigned code) { int sign = (code >> 8) - 1; code &= 0xff; - return ((dca_dmixtable[code] ^ sign) - sign) * pow(2, -15); + return ((dca_dmixtable[code] ^ sign) - sign) * 0x1p-15; } /** |