Commit e3dd0bab authored by malenov's avatar malenov
Browse files

increase the amount of extra #indices during re-allocation to 100

parent 2d9f5839
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ FILE *FEC_pattern = NULL; /* FEC pattern file (for simulation of FEC) */
#endif

#ifdef IND_LIST_DYN
#define STEP_MAX_NUM_INDICES 20 /* increase the maximum number of allowed indices in the list by this amount */
#define STEP_MAX_NUM_INDICES 100 /* increase the maximum number of allowed indices in the list by this amount */
#endif

#ifndef IND_LIST_DYN
@@ -902,7 +902,7 @@ ivas_error move_indices(
/*-------------------------------------------------------------------*
 * check_ind_list_limits()
 *
 * Check, if if the maximum number of indices has been reached -> reallocate
 * Check, if the maximum number of indices has been reached -> reallocate
 * Check, if we will not overwrite an existing indice -> adjust the location
 *-------------------------------------------------------------------*/

@@ -1020,7 +1020,7 @@ ivas_error push_indice(
#endif

#ifdef IND_LIST_DYN
    /* check the limits in the list of indices */
    /* check the limits of the list of indices */
    error = check_ind_list_limits( hBstr );
#endif

@@ -1143,7 +1143,7 @@ ivas_error push_next_indice(
#endif

#ifdef IND_LIST_DYN
    /* check the limits in the list of indices */
    /* check the limits of the list of indices */
    error = check_ind_list_limits( hBstr );
#endif

@@ -1233,7 +1233,7 @@ void push_next_bits(
        code = (uint16_t) ( ( bits[i] << 15 ) | ( ( bits[i + 1] << 14 ) | ( ( bits[i + 2] << 13 ) | ( ( bits[i + 3] << 12 ) | ( ( bits[i + 4] << 11 ) | ( ( bits[i + 5] << 10 ) | ( ( bits[i + 6] << 9 ) | ( ( bits[i + 7] << 8 ) | ( ( bits[i + 8] << 7 ) | ( ( bits[i + 9] << 6 ) | ( ( bits[i + 10] << 5 ) | ( ( bits[i + 11] << 4 ) | ( ( bits[i + 12] << 3 ) | ( ( bits[i + 13] << 2 ) | ( ( bits[i + 14] << 1 ) | bits[i + 15] ) ) ) ) ) ) ) ) ) ) ) ) ) ) );

#ifdef IND_LIST_DYN
        /* check the limits in the list of indices */
        /* check the limits of the list of indices */
        check_ind_list_limits( hBstr );
        ptr = &hBstr->ind_list[hBstr->nb_ind_tot];
#endif
@@ -1253,7 +1253,7 @@ void push_next_bits(
    for ( ; i < nb_bits; ++i )
    {
#ifdef IND_LIST_DYN
        /* check the limits in the list of indices */
        /* check the limits of the list of indices */
        check_ind_list_limits( hBstr );
        ptr = &hBstr->ind_list[hBstr->nb_ind_tot];
#endif