aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2024-03-08 15:53:26 -0800
committerJames Zern <jzern@google.com>2024-03-11 18:50:00 +0000
commitcf1b7a65ffc046d6c8a9081332d74dbf5b0e33c3 (patch)
tree3d8dd5678cca6db670021e3db2926ba208f3a5c4
parent0af724497182d99081a2c28da807f582457fe02b (diff)
downloadlibvpx-cf1b7a65ffc046d6c8a9081332d74dbf5b0e33c3.tar.gz
VP9RateControlRtcConfig: relocate some initializations
use default member initializers for all members for consistency. Change-Id: I1956163c995d94aadbde38b4edaf21dc722e50c4
-rw-r--r--vp9/ratectrl_rtc.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/vp9/ratectrl_rtc.h b/vp9/ratectrl_rtc.h
index 858c7ba8b..4c3925588 100644
--- a/vp9/ratectrl_rtc.h
+++ b/vp9/ratectrl_rtc.h
@@ -11,9 +11,9 @@
#ifndef VPX_VP9_RATECTRL_RTC_H_
#define VPX_VP9_RATECTRL_RTC_H_
-#include <climits>
#include <cstdint>
#include <cstring>
+#include <limits>
#include <memory>
#include "vpx/vpx_encoder.h"
@@ -24,24 +24,22 @@ struct VP9_COMP;
namespace libvpx {
struct VP9RateControlRtcConfig : public VpxRateControlRtcConfig {
VP9RateControlRtcConfig() {
- ss_number_layers = 1;
memset(layer_target_bitrate, 0, sizeof(layer_target_bitrate));
memset(ts_rate_decimator, 0, sizeof(ts_rate_decimator));
scaling_factor_num[0] = 1;
scaling_factor_den[0] = 1;
max_quantizers[0] = max_quantizer;
min_quantizers[0] = min_quantizer;
- max_consec_drop = INT_MAX;
}
// Number of spatial layers
- int ss_number_layers;
+ int ss_number_layers = 1;
int max_quantizers[VPX_MAX_LAYERS] = {};
int min_quantizers[VPX_MAX_LAYERS] = {};
int scaling_factor_num[VPX_SS_MAX_LAYERS] = {};
int scaling_factor_den[VPX_SS_MAX_LAYERS] = {};
// This is only for SVC for now.
- int max_consec_drop;
+ int max_consec_drop = std::numeric_limits<int>::max();
};
struct VP9FrameParamsQpRTC {