Mercurial > libavcodec.hg
diff rv40.c @ 9903:305536ce781f libavcodec
RV3/4 intra types array causes alignment issues (at least on ARM5), thus change
its stride and offset to always have align 4.
author | kostya |
---|---|
date | Wed, 01 Jul 2009 15:08:02 +0000 |
parents | d418640c8d86 |
children | d0f2f4e4436c |
line wrap: on
line diff
--- a/rv40.c Wed Jul 01 10:36:18 2009 +0000 +++ b/rv40.c Wed Jul 01 15:08:02 2009 +0000 @@ -164,7 +164,7 @@ int pattern; int8_t *ptr; - for(i = 0; i < 4; i++, dst += s->b4_stride){ + for(i = 0; i < 4; i++, dst += r->intra_types_stride){ if(!i && s->first_slice_line){ pattern = get_vlc2(gb, aic_top_vlc.table, AIC_TOP_BITS, 1); dst[0] = (pattern >> 2) & 2; @@ -181,8 +181,8 @@ * The second one (used for retrieving only one coefficient) is * top + 10 * left. */ - A = ptr[-s->b4_stride + 1]; // it won't be used for the last coefficient in a row - B = ptr[-s->b4_stride]; + A = ptr[-r->intra_types_stride + 1]; // it won't be used for the last coefficient in a row + B = ptr[-r->intra_types_stride]; C = ptr[-1]; pattern = A + (B << 4) + (C << 8); for(k = 0; k < MODE2_PATTERNS_NUM; k++)