Commit eb1bd85c authored by malenov's avatar malenov
Browse files

add debugging output message when writing indices out-of-order

parent 388c180c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -598,6 +598,9 @@ ivas_error push_indice(
    /* shift indices, if the new id is to be written somewhere inside the list */
    if ( i < hBstr->nb_ind_tot )
    {
#ifdef DEBUG_IND_LIST
        printf( "Indice ID=%d is written before the last indice with ID=%d!\n", id, hBstr->ind_list[hBstr->nb_ind_tot - 1].id );
#endif
        for ( j = hBstr->nb_ind_tot; j > i; j-- )
        {
            hBstr->ind_list[j].id = hBstr->ind_list[j - 1].id;
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@

/*#define BITSTREAM_INDICES_MEMORY*/            /* Don't count memory for bitstream Indice at the encoder - it is a temporary solution for development only */
#define IND_LIST_DYN                            /* dynamic allocation of ind_list based on transport channels */
/*#define DEBUG_IND_LIST*/
#define DEBUG_IND_LIST

#ifdef DEBUGGING