From 24e3f44aedd450fa48ca95d995e65341c2718b0c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 30 Apr 2012 03:31:58 +0200 Subject: [PATCH] EC: fix dest index for non 420 chroma. Signed-off-by: Michael Niedermayer --- libavcodec/error_resilience.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 2691109e49..63f996ccde 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -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;