Commit e7c84423 authored by vaclav's avatar vaclav
Browse files

fix reading of ISM SID signaling

parent bf46ca38
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -486,7 +486,13 @@ ivas_error ivas_dec_get_format_fx(
            /* read the number of objects */
            nchan_ism = 1;
            move16();
#ifdef FIX_HRTF_LOAD
            k = sub( sub( k, 1 ), SID_FORMAT_NBITS );
            move16();
            WHILE( st_ivas->bit_stream[k] && ( nchan_ism < MAX_NUM_OBJECTS ) )
#else
            WHILE( st_ivas->bit_stream[k - 1 - SID_FORMAT_NBITS] && nchan_ism < MAX_NUM_OBJECTS )
#endif
            {
                nchan_ism = add( nchan_ism, 1 );
                k = sub( k, 1 );