diff --git a/mpp/codec/enc/h265/h265e_slice.c b/mpp/codec/enc/h265/h265e_slice.c index 903be9a5..efc01d98 100644 --- a/mpp/codec/enc/h265/h265e_slice.c +++ b/mpp/codec/enc/h265/h265e_slice.c @@ -367,7 +367,7 @@ void h265e_code_slice_header(H265eSlice *slice, MppWriteCtx *bitIf, mpp_writer_put_ue(bitIf, slice->m_ppsId); if (slice_segment_addr != 0) { - while (max_ctu_num > (1 << slice_address_addr_bits)) { + while (max_ctu_num > (RK_U32)(1 << slice_address_addr_bits)) { slice_address_addr_bits++; } //slice_segment_address