Commit 1f984fff authored by vaclav's avatar vaclav
Browse files

fix implicit data type conversion

parent fcaefcac
Loading
Loading
Loading
Loading
Loading
+25 −1
Original line number Diff line number Diff line
@@ -689,7 +689,7 @@ int main(

        /* ISAR frame size is set from command line, not renderer config file.
         * This will be ignored if output format is not split rendering. */
        renderConfig.split_rend_config.isar_frame_size_ms = (int16_t) arg.render_num_subframes * 5;
        renderConfig.split_rend_config.isar_frame_size_ms = (int16_t) arg.render_num_subframes * BINAURAL_RENDERING_FRAME_SIZE_MS;

        if ( ( error = IVAS_DEC_FeedRenderConfig( hIvasDec, renderConfig ) ) != IVAS_ERR_OK )
        {
@@ -2227,7 +2227,11 @@ static ivas_error decodeG192(

            if ( headRotReader == NULL )
            {
#ifdef FIX_945_REMOVE_DUPLICATED_API_FUNC
                for ( i = 0; i < (int16_t) num_subframes; i++ )
#else
                for ( i = 0; i < num_subframes; i++ )
#endif
                {
                    Quaternions[i].w = -3.0f;
                    Quaternions[i].x = 0.0f;
@@ -2240,7 +2244,11 @@ static ivas_error decodeG192(
            }
            else
            {
#ifdef FIX_945_REMOVE_DUPLICATED_API_FUNC
                for ( i = 0; i < (int16_t) num_subframes; i++ )
#else
                for ( i = 0; i < num_subframes; i++ )
#endif
                {
                    if ( ( error = HeadRotationFileReading( headRotReader, &Quaternions[i], &Pos[i] ) ) != IVAS_ERR_OK )
                    {
@@ -2250,7 +2258,11 @@ static ivas_error decodeG192(
                }
            }

#ifdef FIX_945_REMOVE_DUPLICATED_API_FUNC
            for ( i = 0; i < (int16_t) num_subframes; i++ )
#else
            for ( i = 0; i < num_subframes; i++ )
#endif
            {
                if ( ( error = IVAS_DEC_FeedHeadTrackData( hIvasDec, Quaternions[i], Pos[i], i, DEFAULT_AXIS ) ) != IVAS_ERR_OK )
                {
@@ -3166,7 +3178,11 @@ static ivas_error decodeVoIP(

            if ( headRotReader == NULL )
            {
#ifdef FIX_945_REMOVE_DUPLICATED_API_FUNC
                for ( i = 0; i < (int16_t) num_subframes; i++ )
#else
                for ( i = 0; i < num_subframes; i++ )
#endif
                {
                    Quaternions[i].w = -3.0f;
                    Quaternions[i].x = 0.0f;
@@ -3179,7 +3195,11 @@ static ivas_error decodeVoIP(
            }
            else
            {
#ifdef FIX_945_REMOVE_DUPLICATED_API_FUNC
                for ( i = 0; i < (int16_t) num_subframes; i++ )
#else
                for ( i = 0; i < num_subframes; i++ )
#endif
                {
                    if ( ( error = HeadRotationFileReading( headRotReader, &Quaternions[i], &Pos[i] ) ) != IVAS_ERR_OK )
                    {
@@ -3190,7 +3210,11 @@ static ivas_error decodeVoIP(
                }
            }

#ifdef FIX_945_REMOVE_DUPLICATED_API_FUNC
            for ( i = 0; i < (int16_t) num_subframes; i++ )
#else
            for ( i = 0; i < num_subframes; i++ )
#endif
            {
                if ( ( error = IVAS_DEC_FeedHeadTrackData( hIvasDec, Quaternions[i], Pos[i], i, DEFAULT_AXIS ) ) != IVAS_ERR_OK )
                {