EC: fix dest index for non 420 chroma.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-04-30 03:31:58 +02:00
parent bcc213cf36
commit 24e3f44aed
1 changed files with 2 additions and 0 deletions

View File

@ -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;