From 0231ba5d2e9a8d3581287bef411ea0b5e82c317f Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 22 Jan 2002 02:13:55 +0000 Subject: cr and cb swapped CVS patchset: 1438 CVS date: 2002/01/22 02:13:55 --- src/video_out/alphablend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/video_out/alphablend.c b/src/video_out/alphablend.c index ce50a7b21..8646d2864 100644 --- a/src/video_out/alphablend.c +++ b/src/video_out/alphablend.c @@ -414,9 +414,9 @@ void blend_yuv (uint8_t *dst_base[3], vo_overlay_t * img_overl, uint8_t clr=0; uint8_t *dst_y = dst_base[0] + dst_width * y_off + x_off; - uint8_t *dst_cr = dst_base[1] + + uint8_t *dst_cr = dst_base[2] + (y_off / 2) * (dst_width / 2) + (x_off / 2) + 1; - uint8_t *dst_cb = dst_base[2] + + uint8_t *dst_cb = dst_base[1] + (y_off / 2) * (dst_width / 2) + (x_off / 2) + 1; #ifdef LOG_BLEND_YUV printf("overlay_blend started x=%d, y=%d, w=%d h=%d\n",img_overl->x,img_overl->y,img_overl->width,img_overl->height); -- cgit v1.2.3