CVS: main/vidix/drivers mach64_vid.c,1.5,1.6
Update of /cvsroot/mplayer/main/vidix/drivers In directory mplayer:/var/tmp.root/cvs-serv17344 Modified Files: mach64_vid.c Log Message: fixing yv12 Index: mach64_vid.c =================================================================== RCS file: /cvsroot/mplayer/main/vidix/drivers/mach64_vid.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- mach64_vid.c 19 Feb 2002 16:23:02 -0000 1.5 +++ mach64_vid.c 19 Feb 2002 18:04:06 -0000 1.6 @@ -588,7 +588,7 @@ v_inc = (src_h << (12 +(mach64_is_interlace()?1:0) -(mach64_is_dbl_scan()?1:0) - +(is_420?1:0) +// +(is_420?1:0) )) / dest_h; h_inc = (src_w << (12+ecp)) / dest_w; /* keep everything in 16.16 */ @@ -649,7 +649,7 @@ if(mach64_is_interlace()) y_pos/=2; besr.y_x_end = y_pos | ((config->dest.x + dest_w) << 16); besr.height_width = ((src_w - left)<<16) | (src_h - top); - besr.vid_buf_pitch = pitch/2; + besr.vid_buf_pitch = is_420 ? pitch : pitch/2; return 0; }
participants (2)
-
Michael Niedermayer -
Nick Kurshev