diff options
author | James Zern <jzern@google.com> | 2022-04-15 22:23:05 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2022-04-15 22:32:51 -0700 |
commit | c8b9bf2b289a5755c0cc1187ebf07e7af75ef37d (patch) | |
tree | b927e7742e99984a3ef2eff53f99171f9365c6bf /vp8 | |
parent | 36ea80f3d6949c0542ada34ef608b201c30d35f1 (diff) | |
download | libvpx-c8b9bf2b289a5755c0cc1187ebf07e7af75ef37d.tar libvpx-c8b9bf2b289a5755c0cc1187ebf07e7af75ef37d.tar.gz libvpx-c8b9bf2b289a5755c0cc1187ebf07e7af75ef37d.tar.bz2 libvpx-c8b9bf2b289a5755c0cc1187ebf07e7af75ef37d.zip |
vp8: fix some implicit unsigned -> int conversions
fixes some warnings with clang-13 -fsanitize=integer:
vp8/decoder/threading.c:77:27: runtime error: implicit conversion
from type 'unsigned int' of value 4294967295 (32-bit, unsigned) to type
'int' changed the value to -1 (32-bit, signed)
these bitmask constants were missed in:
1676cddaa vp8: fix some implicit signed -> unsigned conv warnings
Bug: webm:1759
Change-Id: I5d894d08fd41e32b91b56a4d91276837b3415ee4
Diffstat (limited to 'vp8')
-rw-r--r-- | vp8/decoder/threading.c | 4 | ||||
-rw-r--r-- | vp8/encoder/ethreading.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/vp8/decoder/threading.c b/vp8/decoder/threading.c index 491e2ce4c..490f62d1b 100644 --- a/vp8/decoder/threading.c +++ b/vp8/decoder/threading.c @@ -74,9 +74,9 @@ static void setup_decoding_thread_data(VP8D_COMP *pbi, MACROBLOCKD *xd, memcpy(mbd->dequant_y2, xd->dequant_y2, sizeof(xd->dequant_y2)); memcpy(mbd->dequant_uv, xd->dequant_uv, sizeof(xd->dequant_uv)); - mbd->fullpixel_mask = 0xffffffff; + mbd->fullpixel_mask = ~0; - if (pc->full_pixel) mbd->fullpixel_mask = 0xfffffff8; + if (pc->full_pixel) mbd->fullpixel_mask = ~7; } for (i = 0; i < pc->mb_rows; ++i) diff --git a/vp8/encoder/ethreading.c b/vp8/encoder/ethreading.c index 55a1528b1..cb35f4f49 100644 --- a/vp8/encoder/ethreading.c +++ b/vp8/encoder/ethreading.c @@ -470,8 +470,8 @@ void vp8cx_init_mbrthread_data(VP8_COMP *cpi, MACROBLOCK *x, setup_mbby_copy(&mbr_ei[i].mb, x); - mbd->fullpixel_mask = 0xffffffff; - if (cm->full_pixel) mbd->fullpixel_mask = 0xfffffff8; + mbd->fullpixel_mask = ~0; + if (cm->full_pixel) mbd->fullpixel_mask = ~7; vp8_zero(mb->coef_counts); vp8_zero(x->ymode_count); |