1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-13 10:26:09 +00:00

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
This commit is contained in:
henry 2005-06-05 18:25:49 +00:00
parent f91302b10c
commit d15fe2e5c8

View File

@ -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;