aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp3.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-06-08 19:25:28 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-06-08 19:25:28 +0000
commit8764389d47ccc43e2d19e2e4457aceac663240fb (patch)
tree9bf57f4887137c108d791db0187edd2bb4b55c12 /libavcodec/vp3.c
parentf5d33f5241413c681dbf7e42208eb63ab791aa60 (diff)
downloadffmpeg-8764389d47ccc43e2d19e2e4457aceac663240fb.tar.gz
Fix vp3_draw_horiz_band to calculate chroma offsets correctly
for 4:2:2 and 4:4:4 formats. Originally committed as revision 23537 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r--libavcodec/vp3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 6c76269b09..28e1eaccee 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1329,7 +1329,7 @@ static void vp3_draw_horiz_band(Vp3DecodeContext *s, int y)
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;