From ee313399d56715b1300e76e9738bceb4b59b703b Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sun, 21 Jun 2009 23:36:05 +0200 Subject: [PATCH] mac text renderer: Fix a nasty crash in the YUVA renderer This really fixes #2649 This entire module needs some refinement, but since we are gonna have to dump it for CoreText very soon, there is little point in doing that. --- modules/misc/quartztext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/misc/quartztext.c b/modules/misc/quartztext.c index 6b2e0adc50..4e80fa80c3 100644 --- a/modules/misc/quartztext.c +++ b/modules/misc/quartztext.c @@ -864,10 +864,10 @@ static int RenderYUVA( filter_t *p_filter, subpicture_region_t *p_region, UniCha p_dst_a = p_region->p_picture->A_PIXELS; i_pitch = p_region->p_picture->A_PITCH; - i_offset = VERTICAL_MARGIN *i_pitch; - for( y=0; yp_data[ y * p_offScreen->i_bytesPerRow + x * p_offScreen->i_bytesPerPixel ]; int i_red = p_offScreen->p_data[ y * p_offScreen->i_bytesPerRow + x * p_offScreen->i_bytesPerPixel + 1 ]; -- 2.39.2