shithub: opus

Download patch

ref: aedab6a53872a64f9be8bc3fd046af009102835a
parent: 3d569391938ef0f52e562af4ee90ec69f4b6baf8
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Mon May 15 11:45:17 EDT 2023

Avoid warnings when not compiling with DRED

--- a/silk/structs.h
+++ b/silk/structs.h
@@ -49,9 +49,6 @@
 {
 #endif
 
-
-
-
 /************************************/
 /* Noise shaping quantization state */
 /************************************/
--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -668,6 +668,9 @@
 
       }
    }
+#else
+   (void)dred;
+   (void)dred_offset;
 #endif
    if (len==0 || data==NULL)
    {
@@ -1162,6 +1165,12 @@
    }
    return 0;
 #else
+   (void)dred;
+   (void)data;
+   (void)len;
+   (void)max_dred_samples;
+   (void)sampling_rate;
+   (void)defer_processing;
    return OPUS_UNIMPLEMENTED;
 #endif
 }
@@ -1175,6 +1184,7 @@
    dred->process_stage = 2;
    return OPUS_OK;
 #else
+   (void)dred;
    return OPUS_UNIMPLEMENTED;
 #endif
 }
@@ -1204,6 +1214,11 @@
    RESTORE_STACK;
    return ret;
 #else
+   (void)st;
+   (void)dred;
+   (void)dred_offset;
+   (void)pcm;
+   (void)frame_size;
    return OPUS_UNIMPLEMENTED;
 #endif
 }
@@ -1215,6 +1230,11 @@
       return OPUS_BAD_ARG;
    return opus_decode_native(st, NULL, 0, pcm, frame_size, 0, 0, NULL, 0, dred, dred_offset);
 #else
+   (void)st;
+   (void)dred;
+   (void)dred_offset;
+   (void)pcm;
+   (void)frame_size;
    return OPUS_UNIMPLEMENTED;
 #endif
 }
--