diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-11 01:58:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-11 03:02:51 +0200 |
commit | 386d60f9783ac094dae6c3c9210e0469f98c9147 (patch) | |
tree | cb4dd058eb22ee3620370524740b01ce9bccf22a /libavcodec/aacdec.c | |
parent | 7ea5dbcb83a502d8152d5c64d32f9a16e7e907c7 (diff) | |
download | ffmpeg-386d60f9783ac094dae6c3c9210e0469f98c9147.tar.gz |
aacdec/lcg_random: fix harmless integer overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r-- | libavcodec/aacdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index af9187924d..f58e052257 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; } |