From 7366195e5a7098de0b7c131f40dd5238b9065a56 Mon Sep 17 00:00:00 2001 From: Jerome Jiang Date: Thu, 16 Sep 2021 10:19:09 -0700 Subject: [PATCH] vp8 rc: explicit cast to avoid VS build failure Change-Id: I6a4daca12b79cf996964661e1af85aa6e258b446 --- vp8/vp8_ratectrl_rtc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vp8/vp8_ratectrl_rtc.cc b/vp8/vp8_ratectrl_rtc.cc index c42ab97..b489940 100644 --- a/vp8/vp8_ratectrl_rtc.cc +++ b/vp8/vp8_ratectrl_rtc.cc @@ -100,7 +100,8 @@ void VP8RateControlRTC::UpdateRateControl( cpi_->worst_quality = oxcf->worst_allowed_q; cpi_->best_quality = oxcf->best_allowed_q; cpi_->output_framerate = rc_cfg.framerate; - oxcf->target_bandwidth = 1000 * rc_cfg.target_bandwidth; + oxcf->target_bandwidth = + static_cast(1000 * rc_cfg.target_bandwidth); oxcf->fixed_q = -1; oxcf->error_resilient_mode = 1; oxcf->starting_buffer_level_in_ms = rc_cfg.buf_initial_sz; -- 2.7.4