From 9046cd3263dd4db3edcba5f70de5cf4139d8b43a Mon Sep 17 00:00:00 2001 From: Tapani Pihlajakuja Date: Thu, 6 Apr 2023 09:28:33 +0300 Subject: [PATCH] Fix issue 389 by removing the sample rate assignment. --- apps/renderer.c | 2 ++ lib_com/options.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/apps/renderer.c b/apps/renderer.c index c2fb6add8a..7fb3e0e009 100644 --- a/apps/renderer.c +++ b/apps/renderer.c @@ -645,7 +645,9 @@ int main( fprintf( stderr, "Sampling rate must be specified on command line when using raw PCM input\n" ); exit( -1 ); } +#ifndef FIX_389_EXT_REND_PCM_SR args.sampleRate = inFileSampleRate; +#endif break; default: fprintf( stderr, "Error: %s\n", ivas_error_to_string( error ) ); diff --git a/lib_com/options.h b/lib_com/options.h index 6d97909f18..6b0779ba40 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -153,6 +153,8 @@ #define SBA2MONO /* FhG: Issue 365: Adapt processing of SBA mono output to be in line with stereo output (less delay, lower complexity) */ +#define FIX_389_EXT_REND_PCM_SR /* Nokia: Issue 389: Fix assignment of sample rate with PCM input. */ + /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ #endif -- GitLab