Commit 386d60f9 authored by Michael Niedermayer's avatar Michael Niedermayer

aacdec/lcg_random: fix harmless integer overflow

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7ea5dbcb
...@@ -781,7 +781,7 @@ static int decode_audio_specific_config(AACContext *ac, ...@@ -781,7 +781,7 @@ static int decode_audio_specific_config(AACContext *ac,
* *
* @return Returns a 32-bit pseudorandom integer * @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; return previous_val * 1664525 + 1013904223;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment