aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/proresenc_anatoliy.c
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2015-03-14 14:26:16 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-14 20:36:43 +0100
commit3814f92fd77f8f09fa6f88333b8d06512b6ced82 (patch)
tree5b4b5dd038827408aa0bfeaabd3ae5af98795343 /libavcodec/proresenc_anatoliy.c
parent238db7cc56be4c4e71ff98758b7b8ef077ebd4ca (diff)
downloadffmpeg-3814f92fd77f8f09fa6f88333b8d06512b6ced82.tar.gz
lavc: use LOCAL_ALIGNED instead of DECLARE_ALIGNED
The later may yield incorrect code for on-stack variables. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/proresenc_anatoliy.c')
-rw-r--r--libavcodec/proresenc_anatoliy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index 634ff08732..bf6e671570 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -286,7 +286,8 @@ static int encode_slice_plane(AVCodecContext *avctx, int mb_count,
{
ProresContext* ctx = avctx->priv_data;
FDCTDSPContext *fdsp = &ctx->fdsp;
- DECLARE_ALIGNED(16, int16_t, blocks)[DEFAULT_SLICE_MB_WIDTH << 8], *block;
+ LOCAL_ALIGNED(16, int16_t, blocks, [DEFAULT_SLICE_MB_WIDTH << 8]);
+ int16_t *block;
int i, blocks_per_slice;
PutBitContext pb;