Commit 00fbdc15 authored by Tom Finegan's avatar Tom Finegan Committed by Gerrit Code Review
Browse files

Merge "vp9_ratectrl.c: Fix MSVC warnings."

parents 639e16ee 4205b51d
......@@ -612,9 +612,9 @@ static int get_active_cq_level(const RATE_CONTROL *rc,
static const double cq_adjust_threshold = 0.5;
int active_cq_level = oxcf->cq_level;
if (oxcf->rc_mode == RC_MODE_CONSTRAINED_QUALITY) {
const double x = rc->total_actual_bits / rc->total_target_bits;
const double x = (double)rc->total_actual_bits / rc->total_target_bits;
if (x < cq_adjust_threshold) {
active_cq_level = active_cq_level * x / cq_adjust_threshold;
active_cq_level = (int)(active_cq_level * x / cq_adjust_threshold);
}
}
return active_cq_level;
......
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