On Thu, Dec 01, 2011 at 12:29:56AM +0000, Mans Rullgard wrote:
> This is needed for optimised transforms.
> 
> Signed-off-by: Mans Rullgard <[email protected]>
> ---
>  libavcodec/rv34.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
> index 098f7b5..295a633 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);
> -- 

OK
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to