mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-15 11:44:49 +00:00
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.
This commit is contained in:
parent
b9630bcf82
commit
d4b9974465
@ -3019,7 +3019,7 @@ static void vc1_decode_i_blocks_adv(VC1Context *v)
|
|||||||
s->mb_x = 0;
|
s->mb_x = 0;
|
||||||
ff_init_block_index(s);
|
ff_init_block_index(s);
|
||||||
memset(&s->coded_block[s->block_index[0]-s->b8_stride], 0,
|
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++) {
|
for(; s->mb_y < s->end_mb_y; s->mb_y++) {
|
||||||
s->mb_x = 0;
|
s->mb_x = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user