Commit 859d9509 authored by fotopoulou's avatar fotopoulou
Browse files

fix issue for ISM_MODE_NONE mode and errors in DirAC bitstream reading

parent 6fba2e7a
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -318,7 +318,7 @@ ivas_error ivas_spar_dec(
    next_bit_pos_orig = st0->next_bit_pos;

#ifdef OSBA_DISC_OBJ_MCT
    if ( st_ivas->ivas_format == SBA_ISM_FORMAT )
    if ( st_ivas->ivas_format == SBA_ISM_FORMAT && st_ivas->ism_mode == ISM_SBA_MODE_DISC )
    {
#ifndef ENABLE_ISM_MD_CODING
        last_bit_pos = (int16_t) ( ( hDecoderConfig->ivas_total_brate / FRAMES_PER_SEC ) - 1 );
@@ -332,6 +332,7 @@ ivas_error ivas_spar_dec(
    else
    {
        *nb_bits_read = 0;
        last_bit_pos = 0;
    }
#endif

@@ -346,7 +347,7 @@ ivas_error ivas_spar_dec(
    }

#ifdef OSBA_DISC_OBJ_MCT
    if ( st_ivas->ivas_format == SBA_ISM_FORMAT )
    if ( st_ivas->ivas_format == SBA_ISM_FORMAT && st_ivas->ism_mode == ISM_SBA_MODE_DISC )
    {
        last_bit_pos = (int16_t) ( ( hDecoderConfig->ivas_total_brate / FRAMES_PER_SEC ) - 1 ) - nb_bits_read[1];
    }