aacdec/lcg_random: fix harmless integer overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-09-11 01:58:03 +02:00
parent 7ea5dbcb83
commit 386d60f978
1 changed files with 1 additions and 1 deletions

View File

@ -781,7 +781,7 @@ static int decode_audio_specific_config(AACContext *ac,
*
* @return Returns a 32-bit pseudorandom integer
*/
static av_always_inline int lcg_random(int previous_val)
static av_always_inline int lcg_random(unsigned previous_val)
{
return previous_val * 1664525 + 1013904223;
}