mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-21 05:11:59 +08:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user