X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavcodec%2Fvp3.c;h=28e1eacceebfdf33df2eab18dbf36c2cb322afc9;hp=6c76269b09686e9e13894affdc13277785284039;hb=8764389d47ccc43e2d19e2e4457aceac663240fb;hpb=f5d33f5241413c681dbf7e42208eb63ab791aa60 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;