diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index bd9a17f4b1f355aa660925b6ab0796472fe98989..ebb572dc31c2cbe35c614b69af11f1779967bc70 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -671,7 +671,7 @@ static void zero_remaining(unsigned int b, unsigned int b_max,
         count += div_blocks[b];
 
     if (count)
-    memset(buf, 0, sizeof(*buf) * count);
+        memset(buf, 0, sizeof(*buf) * count);
 }