diff --git a/libavcodec/speedhq.c b/libavcodec/speedhq.c
index 9c21c0b1bef240e13ea17f7725ee5f77b4b981ac..7ccb2c33efd52e06c9fb8c7b405d2a25eec6007e 100644
--- a/libavcodec/speedhq.c
+++ b/libavcodec/speedhq.c
@@ -224,7 +224,7 @@ static inline int decode_dct_block(const SHQContext *s, GetBitContext *gb, int l
 {
     const int *quant_matrix = s->quant_matrix;
     const uint8_t *scantable = s->intra_scantable.permutated;
-    int16_t block[64];
+    LOCAL_ALIGNED_16(int16_t, block, [64]);
     int dc_offset;
 
     s->bdsp.clear_block(block);