Author: manx
Date: Thu Mar 28 21:31:47 2024
New Revision: 20479
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20479
Log:
[Ref] Opus: Silence warning.
Modified:
trunk/OpenMPT/include/opus/OpenMPT.txt
trunk/OpenMPT/include/opus/dnn/dred_encoder.c
Modified: trunk/OpenMPT/include/opus/OpenMPT.txt
==============================================================================
--- trunk/OpenMPT/include/opus/OpenMPT.txt Thu Mar 28 15:19:01 2024 (r20478)
+++ trunk/OpenMPT/include/opus/OpenMPT.txt Thu Mar 28 21:31:47 2024 (r20479)
@@ -3,6 +3,7 @@
* Obviously, unnecessary folders and files have been removed.
* celt/x86/vq_sse2.c has been modified to check for OPUS_X86_MAY_HAVE_SSE2.
* celt/x86/x86_arch_macros.c has been modified to support AVX and AVX2.
+ * A warning in dnn/dred_encoder.c has been silenced.
* Performance warning in dnn/nnet.c has been silenced.
* Performance warning in dnn/nnet.h has been silenced.
* dnn/nnet_avx2.c has been modified to check for
Modified: trunk/OpenMPT/include/opus/dnn/dred_encoder.c
==============================================================================
--- trunk/OpenMPT/include/opus/dnn/dred_encoder.c Thu Mar 28 15:19:01 2024 (r20478)
+++ trunk/OpenMPT/include/opus/dnn/dred_encoder.c Thu Mar 28 21:31:47 2024 (r20479)
@@ -133,7 +133,11 @@
{
float downmix[MAX_DOWNMIX_BUFFER];
int i;
+#if 0 /* OpenMPT */
int up;
+#else /* OpenMPT */
+ int up=0; /* OpenMPT */
+#endif /* OpenMPT */
celt_assert(enc->channels*in_len <= MAX_DOWNMIX_BUFFER);
celt_assert(in_len * (opus_int32)16000 == out_len * enc->Fs);
switch(enc->Fs) {
|