summaryrefslogtreecommitdiff
path: root/libavcodec/dcadec.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-06-18 08:23:15 +0200
committerAnton Khirnov <anton@khirnov.net>2014-06-18 08:23:15 +0200
commitf2ce63246f5c934429f9cb857a794e07624d7912 (patch)
tree04c7f7baca999bc6e336b10ec983e7dedd2d8c32 /libavcodec/dcadec.c
parent44671b57866aab8dd36715ff010e985e25baaf19 (diff)
dcadec: replace ldexpf with a multiplication by a constant
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/dcadec.c')
-rw-r--r--libavcodec/dcadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index 0727857bb6..e988e94464 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -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));
}
/**