diff --git a/src_base/xevd.c b/src_base/xevd.c index 034aed4..0376569 100644 --- a/src_base/xevd.c +++ b/src_base/xevd.c @@ -1883,7 +1883,7 @@ int xevd_dec_nalu(XEVD_CTX * ctx, XEVD_BITB * bitb, XEVD_STAT * stat) ret = xevd_picman_refp_init(&ctx->dpm, ctx->sps->max_num_ref_pics, sh->slice_type, ctx->poc.poc_val, ctx->nalu.nuh_temporal_id, ctx->last_intra_poc, ctx->refp); xevd_assert_rv(ret == XEVD_OK, ret); - if (ctx->num_ctb == ctx->f_lcu) + if (ctx->num_ctb == (u32)ctx->f_lcu) { /* get available frame buffer for decoded image */ ctx->pic = xevd_picman_get_empty_pic(&ctx->dpm, &ret, ctx->internal_codec_bit_depth); diff --git a/src_main/xevdm.c b/src_main/xevdm.c index c3e0aa5..e67102c 100644 --- a/src_main/xevdm.c +++ b/src_main/xevdm.c @@ -3102,7 +3102,7 @@ int xevd_dec_nalu(XEVD_CTX * ctx, XEVD_BITB * bitb, XEVD_STAT * stat) } xevd_assert_rv(ret == XEVD_OK, ret); - if (ctx->num_ctb == ctx->f_lcu) + if (ctx->num_ctb == (u32)ctx->f_lcu) { /* get available frame buffer for decoded image */ ctx->pic = xevdm_picman_get_empty_pic(&mctx->dpm, &ret, ctx->internal_codec_bit_depth); diff --git a/src_main/xevdm_eco.c b/src_main/xevdm_eco.c index 501b431..44fab1b 100644 --- a/src_main/xevdm_eco.c +++ b/src_main/xevdm_eco.c @@ -2209,7 +2209,7 @@ u32 xevdm_xReadTruncBinCode(XEVD_BSR * bs, const int uiMaxSymbol) int uiVal = 1 << uiThresh; int b = uiMaxSymbol - uiVal; xevd_bsr_read(bs, &ruiSymbol, uiThresh); //xReadCode( uiThresh, ruiSymbol ); - if(ruiSymbol >= uiVal - b) + if(ruiSymbol >= (u32)(uiVal - b)) { u32 uiSymbol; xevd_bsr_read1(bs, &uiSymbol); //xReadFlag( uiSymbol );