From 3d487db153fb4d149156b65c3ca2d9ab910d84f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Mon, 6 Sep 2010 19:26:18 +0000 Subject: [PATCH] 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. Originally committed as revision 25052 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vp3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index c4baff65fd..74b7e1b608 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -1509,7 +1509,7 @@ static void render_slice(Vp3DecodeContext *s, int slice) * 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)); } /*