diff options
author | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-06-05 18:25:49 +0000 |
---|---|---|
committer | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-06-05 18:25:49 +0000 |
commit | d15fe2e5c82aac925c04f084f8331e0d496951ad (patch) | |
tree | 8b727d0dd5e7f484d79d53b630f79f4621d1c63d | |
parent | f91302b10cb28b9329179af72910752a59c2a25c (diff) |
sanity checks for options; treat quality > 5 as 5, not 4
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15652 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/vf_fspp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libmpcodecs/vf_fspp.c b/libmpcodecs/vf_fspp.c index 3de46e2284..ef9e107455 100644 --- a/libmpcodecs/vf_fspp.c +++ b/libmpcodecs/vf_fspp.c @@ -647,9 +647,14 @@ static int open(vf_instance_t *vf, char* args) 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; |