From a2ff0ddeff8b64f8fffd44db11eb6cee353c2324 Mon Sep 17 00:00:00 2001 From: Harish Mahendrakar Date: Fri, 14 Aug 2026 00:55:23 +0000 Subject: [PATCH] libhevcdec: Cast pu1_pic_qp to WORD8 * in boundary strength calculation Cast pu1_pic_qp (UWORD8 *) to (WORD8 *) when assigning to pi1_qp to resolve -Wpointer-sign compiler error. Test: mm -j64 SANITIZE_TARGET=address SANITIZE_HOST=address --- decoder/ihevcd_boundary_strength.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decoder/ihevcd_boundary_strength.c b/decoder/ihevcd_boundary_strength.c index f832d9c..92cc6ba 100644 --- a/decoder/ihevcd_boundary_strength.c +++ b/decoder/ihevcd_boundary_strength.c @@ -506,7 +506,7 @@ WORD32 ihevcd_ctb_boundary_strength_pbslice(bs_ctxt_t *ps_bs_ctxt) /* ctb_size/8 elements per CTB */ qp_strd = ps_sps->i2_pic_wd_in_ctb << (log2_ctb_size - 3); - pi1_qp = ps_bs_ctxt->pu1_pic_qp + ((ps_bs_ctxt->i4_ctb_x + ps_bs_ctxt->i4_ctb_y * qp_strd) << (log2_ctb_size - 3)); + pi1_qp = (WORD8 *)ps_bs_ctxt->pu1_pic_qp + ((ps_bs_ctxt->i4_ctb_x + ps_bs_ctxt->i4_ctb_y * qp_strd) << (log2_ctb_size - 3)); ctb_indx = ps_bs_ctxt->i4_ctb_x + ps_sps->i2_pic_wd_in_ctb * ps_bs_ctxt->i4_ctb_y; u4_qp_const_in_ctb = ps_bs_ctxt->pu1_pic_qp_const_in_ctb[ctb_indx >> 3] & (1 << (ctb_indx & 7));