Mercurial > libavcodec.hg
comparison vp3.c @ 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 | a617365c7c6f |
children | fdafbcef52f5 |
comparison
equal
deleted
inserted
replaced
11855:677c51ca528d | 11856:9d81bd6f2a81 |
---|---|
1327 if (y == 0) | 1327 if (y == 0) |
1328 h -= s->height - s->avctx->height; // account for non-mod16 | 1328 h -= s->height - s->avctx->height; // account for non-mod16 |
1329 y = s->height - y - h; | 1329 y = s->height - y - h; |
1330 } | 1330 } |
1331 | 1331 |
1332 cy = y >> 1; | 1332 cy = y >> s->chroma_y_shift; |
1333 offset[0] = s->current_frame.linesize[0]*y; | 1333 offset[0] = s->current_frame.linesize[0]*y; |
1334 offset[1] = s->current_frame.linesize[1]*cy; | 1334 offset[1] = s->current_frame.linesize[1]*cy; |
1335 offset[2] = s->current_frame.linesize[2]*cy; | 1335 offset[2] = s->current_frame.linesize[2]*cy; |
1336 offset[3] = 0; | 1336 offset[3] = 0; |
1337 | 1337 |