Commit e3a96309 authored by Marton Balint's avatar Marton Balint

avcodec/mpeg_er: fix clearing chroma blocks for 422 and 444

Fixes ticket #7494.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 972ded33
...@@ -78,6 +78,8 @@ static void mpeg_er_decode_mb(void *opaque, int ref, int mv_dir, int mv_type, ...@@ -78,6 +78,8 @@ static void mpeg_er_decode_mb(void *opaque, int ref, int mv_dir, int mv_type,
ff_update_block_index(s); ff_update_block_index(s);
s->bdsp.clear_blocks(s->block[0]); s->bdsp.clear_blocks(s->block[0]);
if (!s->chroma_y_shift)
s->bdsp.clear_blocks(s->block[6]);
s->dest[0] = s->current_picture.f->data[0] + s->dest[0] = s->current_picture.f->data[0] +
s->mb_y * 16 * s->linesize + s->mb_y * 16 * s->linesize +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment