[FFmpeg-cvslog] r20678 - trunk/libavcodec/error_resilience.c

michael subversion
Tue Dec 1 02:01:37 CET 2009


Author: michael
Date: Tue Dec  1 02:01:37 2009
New Revision: 20678

Log:
4:2:2 4:4:4 bugfix for the error concealment code.

Modified:
   trunk/libavcodec/error_resilience.c

Modified: trunk/libavcodec/error_resilience.c
==============================================================================
--- trunk/libavcodec/error_resilience.c	Tue Dec  1 00:52:28 2009	(r20677)
+++ trunk/libavcodec/error_resilience.c	Tue Dec  1 02:01:37 2009	(r20678)
@@ -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);
 }



More information about the ffmpeg-cvslog mailing list