changeset 15651:6a0494e09435

sanity checks for options; treat quality > 5 as 5, not 4
author henry
date Sun, 05 Jun 2005 18:25:49 +0000
parents 5c5219508907
children d47ed74c7d2c
files libmpcodecs/vf_fspp.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_fspp.c	Sun Jun 05 17:40:57 2005 +0000
+++ b/libmpcodecs/vf_fspp.c	Sun Jun 05 18:25:49 2005 +0000
@@ -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;