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;