From: James Zern Date: Fri, 2 Jul 2021 05:16:42 +0000 (-0700) Subject: ratectrl_rtc.h: quiet MSVC int64_t->int conv warning X-Git-Tag: v1.11.0-rc1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=350b0b47f2b126ae33607002590d58aca18033bc;p=libvpx ratectrl_rtc.h: quiet MSVC int64_t->int conv warning target_bandwidth is int64_t, but layer_target_bitrate[0] is an int. this is safe in the only place it's set because target_bandwidth defaults to 1000. target_bandwidth is later used to populate the cpi's target, which is an unsigned int so there may be further fixes/cleanups that can be done. Change-Id: I35dbaa2e55a0fca22e0e2680dcac9ea4c6b2815a --- diff --git a/vp9/ratectrl_rtc.h b/vp9/ratectrl_rtc.h index a30ec1da2..f219f2450 100644 --- a/vp9/ratectrl_rtc.h +++ b/vp9/ratectrl_rtc.h @@ -50,7 +50,7 @@ struct VP9RateControlRtcConfig { vp9_zero(ts_rate_decimator); scaling_factor_num[0] = 1; scaling_factor_den[0] = 1; - layer_target_bitrate[0] = target_bandwidth; + layer_target_bitrate[0] = static_cast(target_bandwidth); max_quantizers[0] = max_quantizer; min_quantizers[0] = min_quantizer; ts_rate_decimator[0] = 1;