Browse Source

EC: fix dest index for non 420 chroma.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
24e3f44aed
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/error_resilience.c

+ 2
- 0
libavcodec/error_resilience.c 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;


Loading…
Cancel
Save