Mercurial > mplayer.hg
changeset 2636:27e829d53e8e
Fixed bug of -vc libmpeg2 on vesa:dga
author | nick |
---|---|
date | Fri, 02 Nov 2001 18:10:20 +0000 |
parents | c1e24e01601b |
children | 8101229be3a5 |
files | libvo/vo_vesa.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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]); }