# HG changeset patch # User reimar # Date 1276025128 0 # Node ID 9d81bd6f2a818c4ece5b93359e74986c59e929d6 # Parent 677c51ca528de549f7267ab755891a2eb1f501f1 Fix vp3_draw_horiz_band to calculate chroma offsets correctly for 4:2:2 and 4:4:4 formats. diff -r 677c51ca528d -r 9d81bd6f2a81 vp3.c --- 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;