From 0bb622ba4dd966f87e0533e35c987c3927374f99 Mon Sep 17 00:00:00 2001
From: Alex Converse <alex.converse@gmail.com>
Date: Thu, 12 Nov 2009 01:44:38 +0000
Subject: [PATCH] Fix a __warn_memset_zero_len gcc-4.4 warning.

Originally committed as revision 20521 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/alsdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 47b708faf9d..bd9a17f4b1f 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -670,6 +670,7 @@ static void zero_remaining(unsigned int b, unsigned int b_max,
     while (b < b_max)
         count += div_blocks[b];
 
+    if (count)
     memset(buf, 0, sizeof(*buf) * count);
 }
 
-- 
GitLab