[FFmpeg-cvslog] EC: fix dest index for non 420 chroma.

Michael Niedermayer git at videolan.org
Mon Apr 30 03:55:55 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Apr 30 03:31:58 2012 +0200| [24e3f44aedd450fa48ca95d995e65341c2718b0c] | committer: Michael Niedermayer

EC: fix dest index for non 420 chroma.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=24e3f44aedd450fa48ca95d995e65341c2718b0c
---

 libavcodec/error_resilience.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c
index 2691109..63f996c 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;



More information about the ffmpeg-cvslog mailing list