[MPlayer-cvslog] CVS: main/libmpcodecs vf_fspp.c,1.4,1.5

Jindrich Makovicka CVS syncmail at mplayerhq.hu
Sun Jun 5 20:25:51 CEST 2005


CVS change done by Jindrich Makovicka CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv29303

Modified Files:
	vf_fspp.c 
Log Message:
sanity checks for options; treat quality > 5 as 5, not 4

Index: vf_fspp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_fspp.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- vf_fspp.c	4 Jun 2005 16:41:53 -0000	1.4
+++ vf_fspp.c	5 Jun 2005 18:25:49 -0000	1.5
@@ -647,9 +647,14 @@
 
     if( log2c >=4 && log2c <=5 )
         vf->priv->log2_count = log2c;
+    else if( log2c >= 6 )
+	vf->priv->log2_count = 5;
 
     if(vf->priv->qp < 0)
         vf->priv->qp = 0;
+
+    if (i < -15) i = -15;
+    if (i > 32) i = 32;
     
     bias= (1<<4)+i; //regulable
     vf->priv->prev_q=0;




More information about the MPlayer-cvslog mailing list