From 0ca93c9f42496cd42dec7b2694883c617d51c10b Mon Sep 17 00:00:00 2001 From: Kacper Sagnowski Date: Fri, 22 May 2026 11:13:18 +0200 Subject: [PATCH 1/2] Fix typo in variable name in decoder.c --- apps/decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/decoder.c b/apps/decoder.c index 6edb2e1ea..752fc401d 100644 --- a/apps/decoder.c +++ b/apps/decoder.c @@ -3604,7 +3604,7 @@ static ivas_error decodeVoIP( #ifdef SUPPORT_JBM_TRACEFILE if ( ( error = IVAS_DEC_VoIP_GetSamples( hIvasDec, nOutSamples, IVAS_DEC_PCM_INT16, (void *) pcmBuf, writeJbmTraceFileFrameWrapper, jbmTraceWriter, &bitstreamReadDone, &nSamplesRendered, ¶metersAvailableForEditing, systemTime_ms ) ) != IVAS_ERR_OK ) #else - if ( ( error = IVAS_DEC_VoIP_GetSamples( hIvasDec, nOutSamples, IVAS_DEC_PCM_INT16, (void *) pcmBuf, &bitstreamReadDone, &nSamplesRendered, ¶meterAvailableForEditing, systemTime_ms ) ) != IVAS_ERR_OK ) + if ( ( error = IVAS_DEC_VoIP_GetSamples( hIvasDec, nOutSamples, IVAS_DEC_PCM_INT16, (void *) pcmBuf, &bitstreamReadDone, &nSamplesRendered, ¶metersAvailableForEditing, systemTime_ms ) ) != IVAS_ERR_OK ) #endif { fprintf( stderr, "\nError in IVAS_DEC_VoIP_GetSamples: %s\n", IVAS_DEC_GetErrorMessage( error ) ); -- GitLab From 4d8db1a15b833df5fc96f3c2e1d89a223408ac97 Mon Sep 17 00:00:00 2001 From: Kacper Sagnowski Date: Thu, 18 Jan 2024 15:35:24 +0100 Subject: [PATCH 2/2] Allow to disable JBM tracefile writing via a define That way JBM tracefile writing can be disabled with a compiler option (-DNO_SUPPORT_JBM_TRACEFILE) without having to modify the source code. --- lib_com/options.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 5c079fce2..6d9d98192 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -40,7 +40,9 @@ /* clang-format off */ /* ################### Start compiler switches ######################## */ +#ifndef NO_SUPPORT_JBM_TRACEFILE #define SUPPORT_JBM_TRACEFILE /* support for JBM tracefile, which is needed for 3GPP objective/subjective testing, but not relevant for real-world implementations */ +#endif /* #################### End compiler switches ######################### */ -- GitLab