aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2018-11-17 23:26:24 +0100
committerMarton Balint <cus@passwd.hu>2018-11-19 22:11:43 +0100
commite3a96309826dd0ea33db0300f7c75414fdbea0a4 (patch)
tree687642ef4851debda44f14a3aff2cbcb87c07814
parent972ded33c08a820303ecf050942f0e74400eda7a (diff)
downloadffmpeg-e3a96309826dd0ea33db0300f7c75414fdbea0a4.tar.gz
avcodec/mpeg_er: fix clearing chroma blocks for 422 and 444
Fixes ticket #7494. Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--libavcodec/mpeg_er.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpeg_er.c b/libavcodec/mpeg_er.c
index ada1a1692f..f54cb8548b 100644
--- a/libavcodec/mpeg_er.c
+++ b/libavcodec/mpeg_er.c
@@ -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);
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->mb_y * 16 * s->linesize +