Commit 15f4006c authored by Fiona Glaser's avatar Fiona Glaser

Fix CBR ratecontrol bug with extremely high qscales

Caused CBR ratecontrol to take a very long time to recover from extreme situations (e.g. /dev/urandom).
parent 0d6c3f3c
......@@ -1977,7 +1977,7 @@ static double clip_qscale( x264_t *h, int pict_type, double q )
{
q *= X264_MAX( pbbits / space, bits / (0.5 * rcc->buffer_size) );
}
q = X264_MAX( q0-5, q );
q = X264_MAX( q0/2, q );
}
if( !rcc->b_vbv_min_rate )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment