summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_ratectrl.c
diff options
context:
space:
mode:
authorjackychen <jackychen@google.com>2016-07-20 15:58:35 -0700
committerjackychen <jackychen@google.com>2016-07-20 15:58:35 -0700
commit71f9cbcfc89a07de28048ccc5bf26d7850ef559c (patch)
tree45e398689bb8115bb3f44aeed73b15aa6c261e8d /vp9/encoder/vp9_ratectrl.c
parent7bb35db8725ca7a2358f6786ce12aafb8fbb9a62 (diff)
downloadlibvpx-71f9cbcfc89a07de28048ccc5bf26d7850ef559c.tar
libvpx-71f9cbcfc89a07de28048ccc5bf26d7850ef559c.tar.gz
libvpx-71f9cbcfc89a07de28048ccc5bf26d7850ef559c.tar.bz2
libvpx-71f9cbcfc89a07de28048ccc5bf26d7850ef559c.zip
vp9: Fix the clang warning of unsigned int type.
Change-Id: I6308db16bd626fa5943925471e9171f567669350
Diffstat (limited to 'vp9/encoder/vp9_ratectrl.c')
-rw-r--r--vp9/encoder/vp9_ratectrl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c
index fbad7d20e..939916fd0 100644
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -2120,7 +2120,7 @@ void adjust_gf_boost_lag_one_pass_vbr(VP9_COMP *cpi, uint64_t avg_sad_current) {
double rate_err = 1.0;
// Get measure of complexity over the future frames, and get the first
// future frame with high_source_sad/scene-change.
- int tot_frames = vp9_lookahead_depth(cpi->lookahead) - 1;
+ int tot_frames = (int)vp9_lookahead_depth(cpi->lookahead) - 1;
for (frame = tot_frames; frame >= 1; --frame) {
const int lagframe_idx = tot_frames - frame + 1;
uint64_t reference_sad = rc->avg_source_sad[0];
@@ -2254,8 +2254,8 @@ void vp9_avg_source_sad(VP9_COMP *cpi) {
}
if (cpi->oxcf.lag_in_frames > 0) {
frames_to_buffer = (cm->current_video_frame == 1) ?
- vp9_lookahead_depth(cpi->lookahead) - 1: 2;
- start_frame = vp9_lookahead_depth(cpi->lookahead) - 1;
+ (int)vp9_lookahead_depth(cpi->lookahead) - 1: 2;
+ start_frame = (int)vp9_lookahead_depth(cpi->lookahead) - 1;
for (frame = 0; frame < frames_to_buffer; ++frame) {
const int lagframe_idx = start_frame - frame;
if (lagframe_idx >= 0) {