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

Philippe Saint-Pierre git at videolan.org
Thu Jan 5 01:13:02 CET 2012


ffmpeg | branch: release/0.9 | Philippe Saint-Pierre <stpere at gmail.com> | Wed Jan  4 21:00:06 2012 +0100| [1bd1103175f4dd080d39075648baa708553004e2] | committer: Michael Niedermayer

Fix possible infinite loop decoding als.

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 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