Mercurial > libavcodec.hg
changeset 11856:9d81bd6f2a81 libavcodec
Fix vp3_draw_horiz_band to calculate chroma offsets correctly
for 4:2:2 and 4:4:4 formats.
author | reimar |
---|---|
date | Tue, 08 Jun 2010 19:25:28 +0000 |
parents | 677c51ca528d |
children | e1e986bb64d0 |
files | vp3.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vp3.c Tue Jun 08 11:55:06 2010 +0000 +++ b/vp3.c Tue Jun 08 19:25:28 2010 +0000 @@ -1329,7 +1329,7 @@ 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;