diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-07-01 15:08:02 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-07-01 15:08:02 +0000 |
commit | 39c601b5e7e03ae13d1946149ace7c8b617c7ef3 (patch) | |
tree | 3beb34e957e41634394173e0c8c1e79db5fe1fc7 /libavcodec/rv30.c | |
parent | 06a497afabd04cbb7f8c7e069a2ac740b3e585ff (diff) | |
download | ffmpeg-39c601b5e7e03ae13d1946149ace7c8b617c7ef3.tar.gz |
RV3/4 intra types array causes alignment issues (at least on ARM5), thus change
its stride and offset to always have align 4.
Originally committed as revision 19316 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv30.c')
-rw-r--r-- | libavcodec/rv30.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/rv30.c b/libavcodec/rv30.c index e1b3ad1db6..4cb2c3d900 100644 --- a/libavcodec/rv30.c +++ b/libavcodec/rv30.c @@ -71,7 +71,7 @@ static int rv30_decode_intra_types(RV34DecContext *r, GetBitContext *gb, int8_t { 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 @@ static int rv30_decode_intra_types(RV34DecContext *r, GetBitContext *gb, int8_t 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){ |