aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alsdec.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2009-11-12 01:44:38 +0000
committerAlex Converse <alex.converse@gmail.com>2009-11-12 01:44:38 +0000
commit0bb622ba4dd966f87e0533e35c987c3927374f99 (patch)
tree7606f5f21d08b42571619cadb2c2c6dc11d7e50b /libavcodec/alsdec.c
parent0c0ccc28a8514b9b8925c16c4c8eaad16878ee38 (diff)
downloadffmpeg-0bb622ba4dd966f87e0533e35c987c3927374f99.tar.gz
Fix a __warn_memset_zero_len gcc-4.4 warning.
Originally committed as revision 20521 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alsdec.c')
-rw-r--r--libavcodec/alsdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 47b708faf9..bd9a17f4b1 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);
}