# HG changeset patch # User reimar # Date 1283801178 0 # Node ID 25174028da0aa67168fb40313b23f518191cce63 # Parent 7106d2c8f1426766222a368c2c8ed740945d24a6 Fix slice height for y position calculation for vp3_draw_horiz_band when the video uses 4:2:2 instead of 4:2:0 coding. diff -r 7106d2c8f142 -r 25174028da0a vp3.c --- a/vp3.c Mon Sep 06 19:21:13 2010 +0000 +++ b/vp3.c Mon Sep 06 19:26:18 2010 +0000 @@ -1509,7 +1509,7 @@ * dispatch (slice - 1); */ - vp3_draw_horiz_band(s, FFMIN(64*slice + 64-16, s->height-16)); + vp3_draw_horiz_band(s, FFMIN((32 << s->chroma_y_shift) * (slice + 1) -16, s->height-16)); } /*