[FFmpeg-devel] [patch] infinite loop
Philippe Saint-Pierre
stpere at gmail.com
Wed Jan 4 04:26:53 CET 2012
Hi,
I noticed an infinite loop in libavcodec/alsdec.c (zero_remaining())
Here is patch attached.
--
Philippe Saint-Pierre
-------------- next part --------------
--- libavcodec/alsdec.c~ 2012-01-03 22:22:16.642164621 -0500
+++ libavcodec/alsdec.c 2012-01-03 22:22:19.950164532 -0500
@@ -1009,13 +1009,13 @@
static void zero_remaining(unsigned int b, unsigned int b_max,
const unsigned int *div_blocks, int32_t *buf)
{
unsigned int count = 0;
while (b < b_max)
- count += div_blocks[b];
+ count += div_blocks[b++];
if (count)
memset(buf, 0, sizeof(*buf) * count);
}
More information about the ffmpeg-devel
mailing list