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>
This commit is contained in:
parent
cfd7d166e2
commit
5ab9294a8d
@ -1011,7 +1011,7 @@ static void zero_remaining(unsigned int b, unsigned int b_max,
|
|||||||
{
|
{
|
||||||
unsigned int count = 0;
|
unsigned int count = 0;
|
||||||
|
|
||||||
while (b < b_max)
|
for (; b < b_max; b++)
|
||||||
count += div_blocks[b];
|
count += div_blocks[b];
|
||||||
|
|
||||||
if (count)
|
if (count)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user