summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec')
-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);
}