Skip to content

Commit

Permalink
[Ref] Opus: Silence warning.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20479 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Mar 28, 2024
1 parent 0379eef commit 83d60e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/opus/OpenMPT.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ The following changes have been made:
* 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
Expand Down
4 changes: 4 additions & 0 deletions include/opus/dnn/dred_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ static void dred_convert_to_16k(DREDEnc *enc, const float *in, int in_len, float
{
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) {
Expand Down

0 comments on commit 83d60e1

Please sign in to comment.