diff options
author | James Zern <jzern@google.com> | 2022-07-27 15:31:00 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2022-07-27 16:59:21 -0700 |
commit | b6d06a6e268d945b960660a91e77195c2612642c (patch) | |
tree | 58ab41a81894a488f25ca932f352f067bd06330d /vp8/decoder/decodemv.c | |
parent | 9763f3c549569df3bad776a02537a97b2d203a3c (diff) | |
download | libvpx-b6d06a6e268d945b960660a91e77195c2612642c.tar libvpx-b6d06a6e268d945b960660a91e77195c2612642c.tar.gz libvpx-b6d06a6e268d945b960660a91e77195c2612642c.tar.bz2 libvpx-b6d06a6e268d945b960660a91e77195c2612642c.zip |
vp8,read_mb_modes_mv: fix implicit conversion warnings
w/clang -fsanitize=integer fixes warnings of the form:
implicit conversion from type 'uint32_t' (aka 'unsigned int') of value
4294443008 (32-bit, unsigned) to type 'int' changed the value to -524288
(32-bit, signed)
Bug: b/229626362
Change-Id: Ic7c0a2e7b64a1dd6fd5cc64adcd5765318c2a956
Diffstat (limited to 'vp8/decoder/decodemv.c')
-rw-r--r-- | vp8/decoder/decodemv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vp8/decoder/decodemv.c b/vp8/decoder/decodemv.c index 51817a2cb..3f459d623 100644 --- a/vp8/decoder/decodemv.c +++ b/vp8/decoder/decodemv.c @@ -372,9 +372,9 @@ static void read_mb_modes_mv(VP8D_COMP *pbi, MODE_INFO *mi, tmp = cnt[CNT_NEAREST]; cnt[CNT_NEAREST] = cnt[CNT_NEAR]; cnt[CNT_NEAR] = tmp; - tmp = near_mvs[CNT_NEAREST].as_int; + tmp = (int)near_mvs[CNT_NEAREST].as_int; near_mvs[CNT_NEAREST].as_int = near_mvs[CNT_NEAR].as_int; - near_mvs[CNT_NEAR].as_int = tmp; + near_mvs[CNT_NEAR].as_int = (uint32_t)tmp; } if (vp8_read(bc, vp8_mode_contexts[cnt[CNT_NEAREST]][1])) { |