[FFmpeg-cvslog] Fix possible infinite loop decoding als.

Philippe Saint-Pierre git at videolan.org
Wed Jan 4 21:01:05 CET 2012


ffmpeg | branch: master | Philippe Saint-Pierre <stpere at gmail.com> | Wed Jan  4 21:00:06 2012 +0100| [f0f2babca23a3d099bcd5a1e18cf5d0eae2f4ef3] | committer: Carl Eugen Hoyos

Fix possible infinite loop decoding als.

Reviewed-by: Thilo Borgmann

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f0f2babca23a3d099bcd5a1e18cf5d0eae2f4ef3
---

 libavcodec/alsdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 0e5509c..9d371de 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -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);



More information about the ffmpeg-cvslog mailing list