aacdec/lcg_random: fix harmless integer overflow
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 10 Sep 2012 23:58:03 +0000 (01:58 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 11 Sep 2012 01:02:51 +0000 (03:02 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/aacdec.c

index af91879..f58e052 100644 (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;
 }