changeset 12461:25174028da0a libavcodec

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.
author reimar
date Mon, 06 Sep 2010 19:26:18 +0000
parents 7106d2c8f142
children ffb3668ff7af
files vp3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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));
 }
 
 /*