Lines 240-246
Link Here
|
240 |
{ |
240 |
{ |
241 |
// The chosen frame doesn't match the prediction. |
241 |
// The chosen frame doesn't match the prediction. |
242 |
if (predicted_metric == 0) mismatch = 0.0; |
242 |
if (predicted_metric == 0) mismatch = 0.0; |
243 |
else mismatch = (100.0*abs(predicted_metric - lowest))/predicted_metric; |
243 |
else mismatch = (100.0*abs((int)(predicted_metric - lowest)))/predicted_metric; |
244 |
if (mismatch < gthresh) |
244 |
if (mismatch < gthresh) |
245 |
{ |
245 |
{ |
246 |
// It's close enough, so use the predicted one. |
246 |
// It's close enough, so use the predicted one. |
Lines 283-289
Link Here
|
283 |
{ |
283 |
{ |
284 |
// The chosen frame doesn't match the prediction. |
284 |
// The chosen frame doesn't match the prediction. |
285 |
if (predicted_metric == 0) mismatch = 0.0; |
285 |
if (predicted_metric == 0) mismatch = 0.0; |
286 |
else mismatch = (100.0*abs(predicted_metric - lowest))/predicted_metric; |
286 |
else mismatch = (100.0*abs((int)(predicted_metric - lowest)))/predicted_metric; |
287 |
if ((int) mismatch <= gthresh) |
287 |
if ((int) mismatch <= gthresh) |
288 |
{ |
288 |
{ |
289 |
// It's close enough, so use the predicted one. |
289 |
// It's close enough, so use the predicted one. |