Merge branch 'basop-1077-internal-safety-checking-tools-for-writing-indices-is-missing-in-the-basop-code' into 'main'
Resolve "Internal safety checking tools for writing indices is missing in the BASOP code"
Closes #1077
See merge request !2858
fprintf(stderr,"Warning: The maximum number of indices %d has been exceeded in frame %d! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().\n",*(hBstr->ivas_max_num_indices),frame);
#endif
/* reallocate the buffer of indices with increased limit */
fprintf(stderr,"Warning: The maximum number of indices %d has been exceeded in frame %d! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().\n",*(hBstr->ivas_max_num_indices),frame);
#endif
/* no available empty slot -> need to re-allocate the buffer */
returnIVAS_ERROR(IVAS_ERR_INTERNAL_FATAL,"Indice ID = %d with value %d exceeds the range of %d bits (frame %d) !\n",id,value,nb_bits,frame);
}
if(nb_bits>16)
{
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);
/*#define DEBUG_MODE_JBM *//* define to output JBM relevant parameters */
#define ENABLE_BITRATE_VERIFICATION /* Enable bitrate verification - use when playing with bit budget */
/*#define DEBUG_APA_SILENCE_NON_SCALED*//* Switch APA into mode that replaces contents of non-scaled frames with silence. Useful for identifying scaled regions in the audio output of the decoder */