diff options
author | James Zern <jzern@google.com> | 2022-08-16 17:46:24 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2022-08-16 18:25:14 -0700 |
commit | a76a0228359723fe8b3c522ea0e7c2e2acb26ca8 (patch) | |
tree | 58d0b68a0725709d269793c3bdea584cbfd2d605 /test/encode_api_test.cc | |
parent | cb18d72c306b8400279191940ec0861af338bb5a (diff) | |
download | libvpx-a76a0228359723fe8b3c522ea0e7c2e2acb26ca8.tar libvpx-a76a0228359723fe8b3c522ea0e7c2e2acb26ca8.tar.gz libvpx-a76a0228359723fe8b3c522ea0e7c2e2acb26ca8.tar.bz2 libvpx-a76a0228359723fe8b3c522ea0e7c2e2acb26ca8.zip |
vp8,VP8_COMP: normalize segment_encode_breakout type
use unsigned int as the API value is of this type; this quiets some
integer sanitizer warnings of the form:
implicit conversion from type 'unsigned int' of value 2147483648
(32-bit, unsigned) to type 'int' changed the value to -2147483648
(32-bit, signed)
Bug: b/229626362
Change-Id: I3d1ca618bf1b3cd57a5dca65a3067f351c1473f8
Diffstat (limited to 'test/encode_api_test.cc')
-rw-r--r-- | test/encode_api_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/encode_api_test.cc b/test/encode_api_test.cc index 08159148b..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) { |