Commit 072bb0f4 authored by vaclav's avatar vaclav
Browse files

fix

parent c5f92942
Loading
Loading
Loading
Loading
Loading
+24 −20
Original line number Diff line number Diff line
@@ -2650,17 +2650,11 @@ static ivas_error decodeG192(
                }
#endif

#ifdef MEM_ALLOC_APP_DEC
                /* Reconfigure IVAS decoder handles and reallocate the memory if IVAS total bitrate changed */
                if ( ( error = IVAS_DEC_Reconfigure( hIvasDec, splitRendBits ) ) != IVAS_ERR_OK )
                {
                    return error;
                }
#else
#ifndef MEM_ALLOC_APP_DEC
                /* Placeholder for memory reallocation */
                /* ... */
#endif

#endif
                /* Load HRTF binary file data */
                if ( arg.hrtfReaderEnabled )
                {
@@ -2671,6 +2665,14 @@ static ivas_error decodeG192(
                    }
                }

#ifdef MEM_ALLOC_APP_DEC
                /* Reconfigure IVAS decoder handles and reallocate the memory if IVAS total bitrate changed */
                if ( ( error = IVAS_DEC_Reconfigure( hIvasDec, splitRendBits ) ) != IVAS_ERR_OK )
                {
                    return error;
                }
#endif

                /* decode transport channels, do TSM and feed to renderer */
#ifdef MEM_ALLOC_APP_DEC
                if ( ( error = IVAS_DEC_GetSamplesDecoder( hIvasDec ) ) != IVAS_ERR_OK )
@@ -3693,17 +3695,11 @@ static ivas_error decodeVoIP(
                    parametersAvailableForEditing = false;
                }

#ifdef MEM_ALLOC_APP_DEC
                /* Reconfigure IVAS decoder handles and reallocate the memory if IVAS total bitrate changed */
                if ( ( error = IVAS_DEC_Reconfigure( hIvasDec, splitRendBits ) ) != IVAS_ERR_OK )
                {
                    return error;
                }
#else
#ifndef MEM_ALLOC_APP_DEC
                /* Placeholder for memory reallocation */
                /* ... */
#endif

#endif
                /* Load HRTF binary file data */
                if ( arg.hrtfReaderEnabled )
                {
@@ -3715,6 +3711,14 @@ static ivas_error decodeVoIP(
                }
            }

#ifdef MEM_ALLOC_APP_DEC
            /* Reconfigure IVAS decoder handles and reallocate the memory if IVAS total bitrate changed */
            if ( ( error = IVAS_DEC_Reconfigure( hIvasDec, splitRendBits ) ) != IVAS_ERR_OK )
            {
                return error;
            }
#endif

            /* Object metadata editing */
            if ( arg.objEditEnabled && parametersAvailableForEditing == true )
            {