mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-29 20:56:12 +02:00
avcodec/dcadec: remove unsignedness from constant
POSIX gurantees >=32bit so it all fits in signed int Also >=32bit ints are assumed througout the codebase Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
118d84b7e9
commit
a740cae4a0
@ -2117,14 +2117,7 @@ static float dca_dmix_code(unsigned code)
|
|||||||
{
|
{
|
||||||
int sign = (code >> 8) - 1;
|
int sign = (code >> 8) - 1;
|
||||||
code &= 0xff;
|
code &= 0xff;
|
||||||
<<<<<<< HEAD
|
return ((dca_dmixtable[code] ^ sign) - sign) * (1.0 / (1 << 15));
|
||||||
#define POW2_MINUS15 .000030517578125
|
|
||||||
return ((dca_dmixtable[code] ^ sign) - sign) * POW2_MINUS15;
|
|
||||||
||||||| merged common ancestors
|
|
||||||
return ldexpf((dca_dmixtable[code] ^ sign) - sign, -15);
|
|
||||||
=======
|
|
||||||
return ((dca_dmixtable[code] ^ sign) - sign) * (1.0 / (1U << 15));
|
|
||||||
>>>>>>> f2ce63246f5c934429f9cb857a794e07624d7912
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user