diff vp3.c @ 11856:9d81bd6f2a81 libavcodec

Fix vp3_draw_horiz_band to calculate chroma offsets correctly for 4:2:2 and 4:4:4 formats.
author reimar
date Tue, 08 Jun 2010 19:25:28 +0000
parents a617365c7c6f
children fdafbcef52f5
line wrap: on
line diff
--- a/vp3.c	Tue Jun 08 11:55:06 2010 +0000
+++ b/vp3.c	Tue Jun 08 19:25:28 2010 +0000
@@ -1329,7 +1329,7 @@
         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;