# HG changeset patch # User nick # Date 1003596984 0 # Node ID ce35271bdb103b5aa355d26c480b6cac06b027b6 # Parent 1dcf06bfad9beabebf69561079cb8744ef22031e Best fix of slice drawing with libmpeg2 diff -r 1dcf06bfad9b -r ce35271bdb10 libvo/vo_vesa.c --- a/libvo/vo_vesa.c Sat Oct 20 16:42:17 2001 +0000 +++ b/libvo/vo_vesa.c Sat Oct 20 16:56:24 2001 +0000 @@ -78,7 +78,7 @@ static unsigned init_mode; /* mode before run of mplayer */ static void *init_state = NULL; /* state before run of mplayer */ static struct win_frame win; /* real-mode window to video memory */ -static void *yuv_buffer = NULL; /* for yuv2rgb and sw_scaling */ +static uint8_t *yuv_buffer = NULL; /* for yuv2rgb and sw_scaling */ static unsigned video_mode; /* selected video mode for playback */ static struct VesaModeInfoBlock video_mode_info; @@ -212,7 +212,7 @@ */ static void __vbeCopyData(uint8_t *image) { - unsigned long i,j,image_offset,offset,limit; + unsigned long i,j,image_offset,offset; unsigned pixel_size,image_line_size,screen_line_size,x_shift; pixel_size = (video_mode_info.BitsPerPixel+7)/8; screen_line_size = video_mode_info.XResolution*pixel_size; @@ -225,8 +225,7 @@ else { x_shift = x_offset*pixel_size; - limit = image_height+y_offset; - for(j=0,i=y_offset;i