mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-19 05:55:07 +00:00
dcadec: replace ldexpf with a multiplication by a constant
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
44671b5786
commit
f2ce63246f
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user