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); }