OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
941fc1e
)
als: prevent infinite loop in zero_remaining().
author
Ronald S. Bultje
<rsbultje@gmail.com>
Fri, 17 Feb 2012 20:28:26 +0000
(12:28 -0800)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Fri, 17 Feb 2012 20:35:08 +0000
(12:35 -0800)
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/alsdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/alsdec.c
b/libavcodec/alsdec.c
index
d54ae87
..
bdc0be1
100644
(file)
--- 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)