From b11843f5ebc0f6f3eeb80cdb3945fbb018f2fd5e Mon Sep 17 00:00:00 2001 From: malenov Date: Thu, 10 Aug 2023 13:29:09 +0200 Subject: [PATCH] removal of DEBUG_IND_LIST_MEMORY --- lib_com/bitstream.c | 10 ---------- lib_com/options.h | 1 - 2 files changed, 11 deletions(-) diff --git a/lib_com/bitstream.c b/lib_com/bitstream.c index 940d8ff59a..25ec91ed41 100644 --- a/lib_com/bitstream.c +++ b/lib_com/bitstream.c @@ -1076,12 +1076,7 @@ ivas_error check_ind_list_limits( if ( ( &hBstr->ind_list[hBstr->nb_ind_tot] - ivas_ind_list_zero ) >= *( hBstr->ivas_max_num_indices ) ) { #ifdef DEBUGGING -#ifdef DEBUG_IND_LIST_MEMORY - /* TODO: replace with the warning message below before the finalization of the IVAS codec */ - assert( 0 && "The maximum number of indices has been exceeded! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata()." ); -#else 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 #endif /* reallocate the buffer of indices with increased limit */ @@ -1113,12 +1108,7 @@ ivas_error check_ind_list_limits( if ( hBstr->ind_list >= ivas_ind_list_last ) { #ifdef DEBUGGING -#ifdef DEBUG_IND_LIST_MEMORY - /* TODO: replace with the warning message below before the finalization of the IVAS codec */ - assert( 0 && "The maximum number of indices has been exceeded! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata()." ); -#else 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 #endif /* no available empty slot -> need to re-allocate the buffer */ diff --git a/lib_com/options.h b/lib_com/options.h index 4b7274c878..e0046c5187 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -128,7 +128,6 @@ /*#define DEBUG_AGC_ENCODER_CMD_OPTION*/ /* Ability to force enable or disable AGC behaviour in DIRAC/SPAR via command line option */ #define DEBUG_JBM_CMD_OPTION /* ability for telling the decoder the frontend fetch size and to not delay compensate for bad frames at the beginning */ #define VARIABLE_SPEED_DECODING /* variable speed decoding employing the JBM functioniality; move to DEBUGGING after build for disabled is fixed */ -#define DEBUG_IND_LIST_MEMORY /* raise assert() when ind_list[] runs out of memory */ /*Split Rendering Debug switches*/ /*#define DBG_WAV_WRITER*/ /* add debugging function dbgwrite_wav() */ -- GitLab