[Mplayer-cvslog] CVS: main/libmpcodecs vf_scale.c,1.46,1.47

Alex Beregszaszi alex at mplayerhq.hu
Fri Oct 10 00:33:04 CEST 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv31123

Modified Files:
	vf_scale.c 
Log Message:
some missing formats

Index: vf_scale.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_scale.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- vf_scale.c	9 Oct 2003 22:25:46 -0000	1.46
+++ vf_scale.c	9 Oct 2003 22:32:30 -0000	1.47
@@ -129,6 +129,7 @@
     // calculate the missing parameters:
     switch(best) {
     case IMGFMT_YUY2:		/* YUY2 needs w rounded to 2 */
+    case IMGFMT_UYVY:
 	if(vf->priv->w==-3) vf->priv->w=(vf->priv->h*width/height+1)&~1; else
 	if(vf->priv->w==-2) vf->priv->w=(vf->priv->h*d_width/d_height+1)&~1;
 	if(vf->priv->w<0) vf->priv->w=width; else
@@ -137,6 +138,8 @@
 	if(vf->priv->h==-2) vf->priv->h=vf->priv->w*d_height/d_width;
 	break;
     case IMGFMT_YV12:		/* YV12 needs w & h rounded to 2 */
+    case IMGFMT_I420:
+    case IMGFMT_IYUV:
 	if(vf->priv->w==-3) vf->priv->w=(vf->priv->h*width/height+1)&~1; else
 	if(vf->priv->w==-2) vf->priv->w=(vf->priv->h*d_width/d_height+1)&~1;
 	if(vf->priv->w<0) vf->priv->w=width; else



More information about the MPlayer-cvslog mailing list