[Mplayer-cvslog] CVS: main/libvo vo_vesa.c,1.29,1.30
Nick Kurshev
nick at mplayer.dev.hu
Fri Nov 2 19:11:14 CET 2001
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv5106/main/libvo
Modified Files:
vo_vesa.c
Log Message:
Fixed bug of -vc libmpeg2 on vesa:dga
Index: vo_vesa.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_vesa.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- vo_vesa.c 2 Nov 2001 17:36:04 -0000 1.29
+++ vo_vesa.c 2 Nov 2001 18:10:20 -0000 1.30
@@ -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]);
}
More information about the MPlayer-cvslog
mailing list