diff options
author | Mans Rullgard <mans@mansr.com> | 2011-12-01 00:18:38 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-12-01 14:29:29 +0000 |
commit | 37fed0e635942306a43b3b546c9c6385a43d5934 (patch) | |
tree | 0cc46a36ab7755fc097878d76ced73a13ff76d48 /libavcodec/rv34.c | |
parent | f28070a123ffae9d3e58e65ef33a3fb69bfe9c5c (diff) | |
download | ffmpeg-37fed0e635942306a43b3b546c9c6385a43d5934.tar.gz |
rv34: align temporary block of "dct" coefs
This is needed for optimised transforms.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r-- | libavcodec/rv34.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index 098f7b5a24..295a633f38 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -1112,7 +1112,7 @@ static int rv34_decode_macroblock(RV34DecContext *r, int8_t *intra_types) GetBitContext *gb = &s->gb; int cbp, cbp2; int i, blknum, blkoff; - DCTELEM block16[64]; + LOCAL_ALIGNED_16(DCTELEM, block16, [64]); int luma_dc_quant; int dist; int mb_pos = s->mb_x + s->mb_y * s->mb_stride; @@ -1147,7 +1147,7 @@ static int rv34_decode_macroblock(RV34DecContext *r, int8_t *intra_types) luma_dc_quant = r->block_type == RV34_MB_P_MIX16x16 ? r->luma_dc_quant_p[s->qscale] : r->luma_dc_quant_i[s->qscale]; if(r->is16){ - memset(block16, 0, sizeof(block16)); + memset(block16, 0, 64 * sizeof(*block16)); rv34_decode_block(block16, gb, r->cur_vlcs, 3, 0); rv34_dequant4x4_16x16(block16, rv34_qscale_tab[luma_dc_quant],rv34_qscale_tab[s->qscale]); r->rdsp.rv34_inv_transform_tab[1](block16); |