Mercurial > libavcodec.hg
diff rv30.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 | 0f95e4f0a3f5 |
children | 8a4984c5cacc |
line wrap: on
line diff
--- a/rv30.c Wed Jul 01 10:36:18 2009 +0000 +++ b/rv30.c Wed Jul 01 15:08:02 2009 +0000 @@ -71,7 +71,7 @@ { int i, j, k; - for(i = 0; i < 4; i++, dst += r->s.b4_stride - 4){ + for(i = 0; i < 4; i++, dst += r->intra_types_stride - 4){ for(j = 0; j < 4; j+= 2){ int code = svq3_get_ue_golomb(gb) << 1; if(code >= 81*2){ @@ -79,7 +79,7 @@ return -1; } for(k = 0; k < 2; k++){ - int A = dst[-r->s.b4_stride] + 1; + int A = dst[-r->intra_types_stride] + 1; int B = dst[-1] + 1; *dst++ = rv30_itype_from_context[A * 90 + B * 9 + rv30_itype_code[code + k]]; if(dst[-1] == 9){