Commit c1bd7e4e authored by vaclav's avatar vaclav Committed by emerit
Browse files

attempt to fix compiler warning

parent a218d490
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -557,10 +557,9 @@ ivas_error ivas_ism_metadata_enc(

                if ( hIsmMeta[ch]->ism_metadata_flag == 0 )
                {
#ifdef NONBE_1273_ISM_METADATA_COUNTER
                    hIsmMeta[ch]->ism_md_fec_cnt_enc = min( hIsmMeta[ch]->ism_md_fec_cnt_enc++, ISM_MD_FEC_CNT_MAX );
#else
                    hIsmMeta[ch]->ism_md_fec_cnt_enc++;
#ifdef NONBE_1273_ISM_METADATA_COUNTER
                    hIsmMeta[ch]->ism_md_fec_cnt_enc = min( hIsmMeta[ch]->ism_md_fec_cnt_enc, ISM_MD_FEC_CNT_MAX );
#endif
                }
                else
@@ -705,10 +704,14 @@ ivas_error ivas_ism_metadata_enc(

        if ( hIsmMeta[ch]->ism_metadata_flag == 0 )
        {
#ifdef NONBE_1273_ISM_METADATA_COUNTER
            hIsmMeta[ch]->ism_md_fec_cnt_enc = min( hIsmMeta[ch]->ism_md_fec_cnt_enc++, ISM_MD_FEC_CNT_MAX );
#else
            hIsmMeta[ch]->ism_md_fec_cnt_enc++;
#ifdef NONBE_1273_ISM_METADATA_COUNTER
            hIsmMeta[ch]->ism_md_fec_cnt_enc = min( hIsmMeta[ch]->ism_md_fec_cnt_enc, ISM_MD_FEC_CNT_MAX );
#endif
        }
        else
        {
            hIsmMeta[ch]->ism_md_fec_cnt_enc = 0;
        }
        hIsmMeta[ch]->ism_md_inc_diff_cnt++;
        hIsmMeta[ch]->ism_md_inc_diff_cnt = min( hIsmMeta[ch]->ism_md_inc_diff_cnt, ISM_MD_INC_DIFF_CNT_MAX );