diff options
author | Philippe Saint-Pierre <stpere at gmail.com> | 2012-01-04 21:00:06 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-01-04 21:00:06 +0100 |
commit | f0f2babca23a3d099bcd5a1e18cf5d0eae2f4ef3 (patch) | |
tree | 3c30bf153ce86dfba3c3124d8dd323f9dcb133da | |
parent | 4452d58c724f7593187154b817c0cf0b0d88e3f7 (diff) | |
download | ffmpeg-f0f2babca23a3d099bcd5a1e18cf5d0eae2f4ef3.tar.gz |
Fix possible infinite loop decoding als.
Reviewed-by: Thilo Borgmann
-rw-r--r-- | libavcodec/alsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 0e5509c74a..9d371de0c8 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1012,7 +1012,7 @@ static void zero_remaining(unsigned int b, unsigned int b_max, unsigned int count = 0; while (b < b_max) - count += div_blocks[b]; + count += div_blocks[b++]; if (count) memset(buf, 0, sizeof(*buf) * count); |