1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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

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;
}