[SCM] libav/experimental: 4:2:2 4:4:4 bugfix for the error concealment code.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:55:14 UTC 2013


The following commit has been merged in the experimental branch:
commit f40a7fd3162222e1cc8af3b43d4d47033558278b
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Tue Dec 1 01:01:37 2009 +0000

    4:2:2 4:4:4 bugfix for the error concealment code.
    
    Originally committed as revision 20678 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c
index 3c0d277..8c6ac9d 100644
--- a/libavcodec/error_resilience.c
+++ b/libavcodec/error_resilience.c
@@ -33,8 +33,8 @@
 
 static void decode_mb(MpegEncContext *s){
     s->dest[0] = s->current_picture.data[0] + (s->mb_y * 16* s->linesize  ) + s->mb_x * 16;
-    s->dest[1] = s->current_picture.data[1] + (s->mb_y * 8 * s->uvlinesize) + s->mb_x * 8;
-    s->dest[2] = s->current_picture.data[2] + (s->mb_y * 8 * s->uvlinesize) + s->mb_x * 8;
+    s->dest[1] = s->current_picture.data[1] + (s->mb_y * (16>>s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16>>s->chroma_x_shift);
+    s->dest[2] = s->current_picture.data[2] + (s->mb_y * (16>>s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16>>s->chroma_x_shift);
 
     MPV_decode_mb(s, s->block);
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list