diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-06-18 08:23:15 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-06-18 08:23:15 +0200 |
commit | f2ce63246f5c934429f9cb857a794e07624d7912 (patch) | |
tree | 04c7f7baca999bc6e336b10ec983e7dedd2d8c32 | |
parent | 44671b57866aab8dd36715ff010e985e25baaf19 (diff) | |
download | ffmpeg-f2ce63246f5c934429f9cb857a794e07624d7912.tar.gz |
dcadec: replace ldexpf with a multiplication by a constant
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-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 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)); } /** |