aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vc1dec.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-08-24 14:36:16 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2011-08-24 22:06:06 -0700
commitd4b9974465baf893e90527a366e7a7411ded1ef8 (patch)
treee3d77b97976a6c42ee0bdc9dbdc39150cf89c34d /libavcodec/vc1dec.c
parentb9630bcf8215034f5a50e1f6835d4c4366413618 (diff)
downloadffmpeg-d4b9974465baf893e90527a366e7a7411ded1ef8.tar.gz
vc1: properly zero coded_block[] edges on new slice entry.
Previously, we would leave the left edge uninitialized, which led to CBP prediction errors on slice edges, e.g. in SA10098.vc1.
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r--libavcodec/vc1dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 8bf900c97d..4954d4fd75 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -3019,7 +3019,7 @@ static void vc1_decode_i_blocks_adv(VC1Context *v)
s->mb_x = 0;
ff_init_block_index(s);
memset(&s->coded_block[s->block_index[0]-s->b8_stride], 0,
- s->b8_stride * sizeof(*s->coded_block));
+ (1 + s->b8_stride) * sizeof(*s->coded_block));
}
for(; s->mb_y < s->end_mb_y; s->mb_y++) {
s->mb_x = 0;