Commit 65b62e83 authored by reimar's avatar reimar

Fix vp3_draw_horiz_band to calculate chroma offsets correctly

for 4:2:2 and 4:4:4 formats.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23537 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d0d953db
...@@ -1329,7 +1329,7 @@ static void vp3_draw_horiz_band(Vp3DecodeContext *s, int y) ...@@ -1329,7 +1329,7 @@ static void vp3_draw_horiz_band(Vp3DecodeContext *s, int y)
y = s->height - y - h; y = s->height - y - h;
} }
cy = y >> 1; cy = y >> s->chroma_y_shift;
offset[0] = s->current_frame.linesize[0]*y; offset[0] = s->current_frame.linesize[0]*y;
offset[1] = s->current_frame.linesize[1]*cy; offset[1] = s->current_frame.linesize[1]*cy;
offset[2] = s->current_frame.linesize[2]*cy; offset[2] = s->current_frame.linesize[2]*cy;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment