returnIVAS_ERROR(IVAS_ERR_INTERNAL_FATAL,"Indice ID = %d with value %d is trying to allocate %d bits which exceeds 16 bits (frame %d) !\n",id,value,nb_bits,frame);
}
#ifndef IND_LIST_DYN
if(id>=MAX_NUM_INDICES)
{
returnIVAS_ERROR(IVAS_ERR_INTERNAL_FATAL,"Indice ID = %d exceeds the total number of indices: %d (frame %d) !\n",id,MAX_NUM_INDICES,frame);
}
#endif
#ifdef IND_LIST_DYN
/* check, if max number of indices has not been exceeded */
if(hBstr->nb_ind_tot>=MAX_NUM_INDICES)
if(hBstr->nb_ind_tot>=hBstr->max_num_indices)
{
returnIVAS_ERROR(IVAS_ERR_INTERNAL_FATAL,"Maximum number of indices %d has been exceeded (frame %d) !\n",MAX_NUM_INDICES,frame);
returnIVAS_ERROR(IVAS_ERR_INTERNAL_FATAL,"Maximum number of indices %d has been exceeded (frame %d) !\n",hBstr->max_num_indices,frame);
}
#endif
#endif
@@ -341,17 +344,15 @@ ivas_error push_indice(
#ifdef IND_LIST_DYN
hBstr->nb_ind_tot++;
hBstr->next_ind++;
#ifdef DEBUG_IND_LIST
assert((hBstr->nb_ind_tot<hBstr->max_num_indices)&&"Maximum number of indices has been exceeded!");