Commit 99b8471e authored by Loren Merritt's avatar Loren Merritt

fix a rare NaN in ratecontrol


git-svn-id: svn://svn.videolan.org/x264/trunk@541 df754926-b1dd-0310-bc7b-ec298dee348c
parent adc4b4f8
......@@ -1038,6 +1038,8 @@ static double predict_size( predictor_t *p, double q, double var )
static void update_predictor( predictor_t *p, double q, double var, double bits )
{
if( var < 10 )
return;
p->count *= p->decay;
p->coeff *= p->decay;
p->count ++;
......
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