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

fix a rare NaN in ratecontrol

git-svn-id: svn:// 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 )
p->count *= p->decay;
p->coeff *= p->decay;
p->count ++;
Supports Markdown
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