diff options
author | James Zern <jzern@google.com> | 2022-04-15 22:29:31 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2022-04-15 22:33:11 -0700 |
commit | 9750257826bea4c73557f0612b24e9b85baf7031 (patch) | |
tree | f5b9dd19fdd2b5d358c6aa187241ffd332fa4db8 /vp8 | |
parent | c8b9bf2b289a5755c0cc1187ebf07e7af75ef37d (diff) | |
download | libvpx-9750257826bea4c73557f0612b24e9b85baf7031.tar.gz |
vp8,get_sub_mv_ref_prob: change arguments to uint32_t
this matches the call with int_mv::as_int and fixes a warning with
clang-13 -fsanitize=integer:
vp8/decoder/decodemv.c:240:32: runtime error: implicit conversion from
type 'uint32_t' (aka 'unsigned int') of value 4282515456 (32-bit,
unsigned) to type 'int' changed the value to -12451840 (32-bit, signed)
Bug: webm:1759
Change-Id: I7c0aa72baa45421929afac26566e149adc6669d7
Diffstat (limited to 'vp8')
-rw-r--r-- | vp8/decoder/decodemv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vp8/decoder/decodemv.c b/vp8/decoder/decodemv.c index 94373852d..51817a2cb 100644 --- a/vp8/decoder/decodemv.c +++ b/vp8/decoder/decodemv.c @@ -173,7 +173,8 @@ const vp8_prob vp8_sub_mv_ref_prob3[8][VP8_SUBMVREFS - 1] = { { 208, 1, 1 } /* SUBMVREF_LEFT_ABOVE_ZED */ }; -static const vp8_prob *get_sub_mv_ref_prob(const int left, const int above) { +static const vp8_prob *get_sub_mv_ref_prob(const uint32_t left, + const uint32_t above) { int lez = (left == 0); int aez = (above == 0); int lea = (left == above); |