[FFmpeg-cvslog] r23537 - trunk/libavcodec/vp3.c

reimar subversion
Tue Jun 8 21:25:29 CEST 2010


Author: reimar
Date: Tue Jun  8 21:25:28 2010
New Revision: 23537

Log:
Fix vp3_draw_horiz_band to calculate chroma offsets correctly
for 4:2:2 and 4:4:4 formats.

Modified:
   trunk/libavcodec/vp3.c

Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c	Tue Jun  8 14:40:34 2010	(r23536)
+++ trunk/libavcodec/vp3.c	Tue Jun  8 21:25:28 2010	(r23537)
@@ -1329,7 +1329,7 @@ static void vp3_draw_horiz_band(Vp3Decod
         y = s->height - y - h;
     }
 
-    cy = y >> 1;
+    cy = y >> s->chroma_y_shift;
     offset[0] = s->current_frame.linesize[0]*y;
     offset[1] = s->current_frame.linesize[1]*cy;
     offset[2] = s->current_frame.linesize[2]*cy;



More information about the ffmpeg-cvslog mailing list