Commit 24e3f44a authored by Michael Niedermayer's avatar Michael Niedermayer

EC: fix dest index for non 420 chroma.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bcc213cf
......@@ -48,6 +48,8 @@ static void decode_mb(MpegEncContext *s, int ref)
ff_init_block_index(s);
ff_update_block_index(s);
s->dest[1] += (16 >> s->chroma_x_shift) - 8;
s->dest[2] += (16 >> s->chroma_x_shift) - 8;
if (CONFIG_H264_DECODER && s->codec_id == CODEC_ID_H264) {
H264Context *h = (void*)s;
......
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