diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 9d72c5abf56cf815837523b7388619b2c9bbe388..b9614e7e6a8d4037ad6a00d94fedd94b78ba6d7b 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -686,7 +686,7 @@ static void do_rematrixing(AC3DecodeContext *ctx)
 static void do_imdct_256(AC3DecodeContext *ctx, int chindex)
 {
     int i, k;
-    float x[128];
+    DECLARE_ALIGNED_16(float, x[128]);
     FFTComplex z[2][64];
     float *o_ptr = ctx->tmp_output;