diff options
author | Tom Finegan <tomfinegan@google.com> | 2014-05-22 14:10:11 -0700 |
---|---|---|
committer | Tom Finegan <tomfinegan@google.com> | 2014-05-22 14:44:37 -0700 |
commit | 4205b51d512cd789d4d39bc43edfa47c66ef0ccd (patch) | |
tree | 9ea097c9371ddf3e075c0ff45ddd46f453e22e07 /vp9/encoder | |
parent | 59948cc343738bec2cbfa6a791865a8189f5f3f2 (diff) | |
download | libvpx-4205b51d512cd789d4d39bc43edfa47c66ef0ccd.tar libvpx-4205b51d512cd789d4d39bc43edfa47c66ef0ccd.tar.gz libvpx-4205b51d512cd789d4d39bc43edfa47c66ef0ccd.tar.bz2 libvpx-4205b51d512cd789d4d39bc43edfa47c66ef0ccd.zip |
vp9_ratectrl.c: Fix MSVC warnings.
Change-Id: I4bd635949240880ced5f581c24e981ccd0374e40
Diffstat (limited to 'vp9/encoder')
-rw-r--r-- | vp9/encoder/vp9_ratectrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c index af889e366..b57e3897e 100644 --- a/vp9/encoder/vp9_ratectrl.c +++ b/vp9/encoder/vp9_ratectrl.c @@ -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; |