shithub: libvpx

Download patch

ref: 7366195e5a7098de0b7c131f40dd5238b9065a56
parent: 8a6fbc0b4eb8538e213782bcdc3969a08b44e73b
author: Jerome Jiang <jianj@google.com>
date: Thu Sep 16 06:19:09 EDT 2021

vp8 rc: explicit cast to avoid VS build failure

Change-Id: I6a4daca12b79cf996964661e1af85aa6e258b446

--- a/vp8/vp8_ratectrl_rtc.cc
+++ b/vp8/vp8_ratectrl_rtc.cc
@@ -100,7 +100,8 @@
   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<unsigned int>(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;