OSDN Git Service

EC: fix dest index for non 420 chroma.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 30 Apr 2012 01:31:58 +0000 (03:31 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 30 Apr 2012 01:49:32 +0000 (03:49 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/error_resilience.c

index 2691109..63f996c 100644 (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;