diff --git a/apps/renderer.c b/apps/renderer.c index c2fb6add8a680642a7ec9715170e078936499cee..7fb3e0e009b7e17e0a290e4ca1de574368fb1a57 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 1755b11dc8fcbcda71f2dbc4a5b976a182185716..b9856194fba6cd198459766d51baf05a1cd9d080 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -157,6 +157,8 @@ #define NOKIA_ADAPTIVE_BINAURAL_PROTOS /* Nokia: Contribution 28: Adaptive binaural prototypes */ #define NOKIA_ADAPTIVE_BINAURAL_PROTOS_OPT /* Nokia: enable adaptive binaural prototype complexity optimizations */ +#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