Browse Source

Fix possible infinite loop decoding als.

Reviewed-by: Thilo Borgmann
(cherry picked from commit f0f2babca2)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9.1
Philippe Saint-Pierre Michael Niedermayer 14 years ago
parent
commit
1bd1103175
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/alsdec.c

+ 1
- 1
libavcodec/alsdec.c View File

@@ -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);


Loading…
Cancel
Save