From 1923ea178ddccb6e3236aa4e1f8cddf1583d5701 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Tue, 3 Jan 2012 22:49:01 -0500 Subject: [PATCH] ffmpeg: infinite loop (als decoder) CID 3176. Patch proposed upstream. --- src/add-ons/media/plugins/ffmpeg/libavcodec/alsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/media/plugins/ffmpeg/libavcodec/alsdec.c b/src/add-ons/media/plugins/ffmpeg/libavcodec/alsdec.c index 2058a85384..4006a1ace6 100644 --- a/src/add-ons/media/plugins/ffmpeg/libavcodec/alsdec.c +++ b/src/add-ons/media/plugins/ffmpeg/libavcodec/alsdec.c @@ -992,7 +992,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);