diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index 42310b24a0d0590918d786d13f6432fdbf71a9f4..b3592f418307a9366e83ca2e7787402e605436f4 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -141,10 +141,9 @@ static av_cold int flac_decode_init(AVCodecContext *avctx)
     if (!ff_flac_is_extradata_valid(avctx, &format, &streaminfo))
         return -1;
 
-        /* initialize based on the demuxer-supplied streamdata header */
-            ff_flac_parse_streaminfo(avctx, (FLACStreaminfo *)s,
-                                     streaminfo);
-            allocate_buffers(s);
+    /* initialize based on the demuxer-supplied streamdata header */
+    ff_flac_parse_streaminfo(avctx, (FLACStreaminfo *)s, streaminfo);
+    allocate_buffers(s);
 
     return 0;
 }