diff options
author | Måns Rullgård <mans@mansr.com> | 2010-02-17 20:36:20 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-02-17 20:36:20 +0000 |
commit | 40d1122752242f5404a42dd824fecfb531714253 (patch) | |
tree | 8cacc56931240143f9fe17979b9c65f4f758922c /libavcodec/dnxhdenc.c | |
parent | e6a0c3540d3451b162e624905ef5e212f77a4fee (diff) | |
download | ffmpeg-40d1122752242f5404a42dd824fecfb531714253.tar.gz |
Use LOCAL_ALIGNED macro for local arrays
Originally committed as revision 21866 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dnxhdenc.c')
-rw-r--r-- | libavcodec/dnxhdenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index dbe9e083b1..5c986452e3 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -398,6 +398,7 @@ static int dnxhd_calc_bits_thread(AVCodecContext *avctx, void *arg, int jobnr, i DNXHDEncContext *ctx = avctx->priv_data; int mb_y = jobnr, mb_x; int qscale = ctx->qscale; + LOCAL_ALIGNED_16(DCTELEM, block, [64]); ctx = ctx->thread[threadnr]; ctx->m.last_dc[0] = @@ -414,12 +415,11 @@ static int dnxhd_calc_bits_thread(AVCodecContext *avctx, void *arg, int jobnr, i dnxhd_get_blocks(ctx, mb_x, mb_y); for (i = 0; i < 8; i++) { - DECLARE_ALIGNED_16(DCTELEM, block)[64]; DCTELEM *src_block = ctx->blocks[i]; int overflow, nbits, diff, last_index; int n = dnxhd_switch_matrix(ctx, i); - memcpy(block, src_block, sizeof(block)); + memcpy(block, src_block, 64*sizeof(*block)); last_index = ctx->m.dct_quantize((MpegEncContext*)ctx, block, i, qscale, &overflow); ac_bits += dnxhd_calc_ac_bits(ctx, block, last_index); |