diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-08-30 06:16:33 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-08-30 06:16:33 +0000 |
commit | 20622c4a8a5c5767136b916797163e604e66877f (patch) | |
tree | 70f9718c12839de382eaa3b22517d972c5d0a1db /libavcodec/rv40.c | |
parent | 67c2c5bb2ef59fca4a378de8b31110431b3cc13e (diff) | |
download | ffmpeg-20622c4a8a5c5767136b916797163e604e66877f.tar.gz |
Adjust r->avail_cache[] indexes to avoid alignment issues when zeroing block
inside it.
Originally committed as revision 19743 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv40.c')
-rw-r--r-- | libavcodec/rv40.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/rv40.c b/libavcodec/rv40.c index c20a85ecda..baf2d6a34d 100644 --- a/libavcodec/rv40.c +++ b/libavcodec/rv40.c @@ -235,13 +235,13 @@ static int rv40_decode_mb_info(RV34DecContext *r) if(--r->s.mb_skip_run) return RV34_MB_SKIP; - if(r->avail_cache[5-1]) + if(r->avail_cache[6-1]) blocks[r->mb_type[mb_pos - 1]]++; - if(r->avail_cache[5-4]){ + if(r->avail_cache[6-4]){ blocks[r->mb_type[mb_pos - s->mb_stride]]++; - if(r->avail_cache[5-2]) + if(r->avail_cache[6-2]) blocks[r->mb_type[mb_pos - s->mb_stride + 1]]++; - if(r->avail_cache[5-5]) + if(r->avail_cache[6-5]) blocks[r->mb_type[mb_pos - s->mb_stride - 1]]++; } |