Use correct LOCAL_ALIGNED for stack variables instead of DECLARE_ALIGNED.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 19 Sep 2011 22:30:25 +0000 (00:30 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 20 Sep 2011 17:05:51 +0000 (19:05 +0200)
LOCAL_ALIGNED should work for all compilers/systems whereas
DECLARE_ALIGNED does not work on some (do not remember which though).

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavcodec/proresdec.c

index 810d523..3f8f48b 100644 (file)
@@ -397,7 +397,8 @@ static void decode_slice_luma(AVCodecContext *avctx, SliceContext *slice,
                               const int *qmat)
 {
     ProresContext *ctx = avctx->priv_data;
-    DECLARE_ALIGNED(16, DCTELEM, blocks)[8*4*64], *block;
+    LOCAL_ALIGNED_16(DCTELEM, blocks, [8*4*64]);
+    DCTELEM *block;
     GetBitContext gb;
     int i, blocks_per_slice = slice->mb_count<<2;
 
@@ -426,7 +427,8 @@ static void decode_slice_chroma(AVCodecContext *avctx, SliceContext *slice,
                                 const int *qmat)
 {
     ProresContext *ctx = avctx->priv_data;
-    DECLARE_ALIGNED(16, DCTELEM, blocks)[8*4*64], *block;
+    LOCAL_ALIGNED_16(DCTELEM, blocks, [8*4*64]);
+    DCTELEM *block;
     GetBitContext gb;
     int i, blocks_per_slice = slice->mb_count*2;