# HG changeset patch # User nick # Date 1004724620 0 # Node ID 27e829d53e8eb06f131ec17f7baade4df606eb2b # Parent c1e24e01601bb0a4cb93097b86dfe52fc36d82b6 Fixed bug of -vc libmpeg2 on vesa:dga diff -r c1e24e01601b -r 27e829d53e8e libvo/vo_vesa.c --- a/libvo/vo_vesa.c Fri Nov 02 17:43:05 2001 +0000 +++ b/libvo/vo_vesa.c Fri Nov 02 18:10:20 2001 +0000 @@ -246,8 +246,9 @@ int rgb_stride; yuv_slice=dga_buffer; if(HAS_DGA()) yuv_slice += y_offset*SCREEN_LINE_SIZE(PIXEL_SIZE())+x_offset*PIXEL_SIZE(); - rgb_stride = PIXEL_SIZE()*(HAS_DGA()?video_mode_info.XResolution:image_width); - yuv_slice+=(image_width*y+x)*PIXEL_SIZE(); + rgb_stride = HAS_DGA()?video_mode_info.XResolution:image_width; + yuv_slice+=(rgb_stride*y+x)*PIXEL_SIZE(); + rgb_stride *= PIXEL_SIZE(); yuv2rgb(yuv_slice, image[0], image[1], image[2], w, h, rgb_stride, stride[0], stride[1]); }