diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-02-17 12:28:26 -0800 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2012-02-26 10:03:15 +0100 |
commit | 5ab9294a8db5b3a796871e403b1a779a413a494c (patch) | |
tree | 1d6aa9e489bfd687ad0ba03931c1d8aabf502268 | |
parent | cfd7d166e2ae68302329c059afa7c4778a70e9b5 (diff) | |
download | ffmpeg-5ab9294a8db5b3a796871e403b1a779a413a494c.tar.gz |
als: prevent infinite loop in zero_remaining().
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit af468015d972c0dec5c8c37b2685ffa5cbe4ae87)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-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 dc4961c9ba..26496bf0f1 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1011,7 +1011,7 @@ static void zero_remaining(unsigned int b, unsigned int b_max, { unsigned int count = 0; - while (b < b_max) + for (; b < b_max; b++) count += div_blocks[b]; if (count) |