diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-09-06 19:26:18 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-09-06 19:26:18 +0000 |
commit | 3d487db153fb4d149156b65c3ca2d9ab910d84f4 (patch) | |
tree | b01bc673cf1a028ee8bf0d751a0a5dbd6595c58e | |
parent | 3b9ee20f70cb725f9955e2ae758944846c76f391 (diff) | |
download | ffmpeg-3d487db153fb4d149156b65c3ca2d9ab910d84f4.tar.gz |
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
-rw-r--r-- | libavcodec/vp3.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } /* |