[FFmpeg-cvslog] aacdec/lcg_random: fix harmless integer overflow

Michael Niedermayer git at videolan.org
Tue Sep 11 03:26:50 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Sep 11 01:58:03 2012 +0200| [386d60f9783ac094dae6c3c9210e0469f98c9147] | committer: Michael Niedermayer

aacdec/lcg_random: fix harmless integer overflow

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=386d60f9783ac094dae6c3c9210e0469f98c9147
---

 libavcodec/aacdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index af91879..f58e052 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list