aboutsummaryrefslogtreecommitdiff
path: root/test/encode_api_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/encode_api_test.cc')
-rw-r--r--test/encode_api_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/encode_api_test.cc b/test/encode_api_test.cc
index 6f61c7750..ecdf92834 100644
--- a/test/encode_api_test.cc
+++ b/test/encode_api_test.cc
@@ -233,8 +233,8 @@ TEST(EncodeAPI, SetRoi) {
roi.roi_map = roi_map;
// VP8 only. This value isn't range checked.
roi.static_threshold[1] = 1000;
- roi.static_threshold[2] = INT_MIN;
- roi.static_threshold[3] = INT_MAX;
+ roi.static_threshold[2] = UINT_MAX / 2 + 1;
+ roi.static_threshold[3] = UINT_MAX;
for (const auto delta : { -63, -1, 0, 1, 63 }) {
for (int i = 0; i < 8; ++i) {
@@ -336,7 +336,7 @@ TEST(EncodeAPI, ConfigChangeThreadCount) {
for (const auto *iface : kCodecIfaces) {
SCOPED_TRACE(vpx_codec_iface_name(iface));
for (int i = 0; i < (IsVP9(iface) ? 2 : 1); ++i) {
- vpx_codec_enc_cfg_t cfg;
+ vpx_codec_enc_cfg_t cfg = {};
struct Encoder {
~Encoder() { EXPECT_EQ(vpx_codec_destroy(&ctx), VPX_CODEC_OK); }
vpx_codec_ctx_t ctx = {};