[Mplayer-cvslog] CVS: main/libvo vo_xmga.c,1.52,1.53
Arpi of Ize
arpi at mplayer.dev.hu
Sat Mar 9 22:53:06 CET 2002
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv17344
Modified Files:
vo_xmga.c
Log Message:
round up width/height if mod 2 != 0
Index: vo_xmga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xmga.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- vo_xmga.c 8 Mar 2002 20:14:08 -0000 1.52
+++ vo_xmga.c 9 Mar 2002 21:53:03 -0000 1.53
@@ -210,17 +210,22 @@
return(-1);
}
+ width+=width&1;
+
switch(format)
{
case IMGFMT_YV12:
+ height+=height&1;
mga_vid_config.format=MGA_VID_FORMAT_YV12;
mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height + ( ( ( width + 31 ) & ~31 ) * height ) / 2;
break;
case IMGFMT_I420:
+ height+=height&1;
mga_vid_config.format=MGA_VID_FORMAT_I420;
mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height + ( ( ( width + 31 ) & ~31 ) * height ) / 2;
break;
case IMGFMT_IYUV:
+ height+=height&1;
mga_vid_config.format=MGA_VID_FORMAT_IYUV;
mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height + ( ( ( width + 31 ) & ~31 ) * height ) / 2;
break;
More information about the MPlayer-cvslog
mailing list