shithub: opus

Download patch

ref: 50407983f2f785adf55a16797e1d42741dc1295b
parent: 4b8becdfc5df002701ea1dd97b37d424b12b519d
author: Jean-Marc Valin <[email protected]>
date: Tue Jul 5 20:50:54 EDT 2022

Fix warnings when compiling with FUZZING enabled

--- a/celt/rate.c
+++ b/celt/rate.c
@@ -356,6 +356,8 @@
             else
                depth_threshold = 0;
 #ifdef FUZZING
+            (void)signalBandwidth;
+            (void)depth_threshold;
             if ((rand()&0x1) == 0)
 #else
             if (codedBands<=start+2 || (band_bits > (depth_threshold*band_width<<LM<<BITRES)>>4 && j<=signalBandwidth))
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -1315,6 +1315,8 @@
         st->stream_channels = st->force_channels;
     } else {
 #ifdef FUZZING
+        (void)stereo_music_threshold;
+        (void)stereo_voice_threshold;
        /* Random mono/stereo decision */
        if (st->channels == 2 && (rand()&0x1F)==0)
           st->stream_channels = 3-st->stream_channels;
@@ -1353,6 +1355,8 @@
     } else if (st->user_forced_mode == OPUS_AUTO)
     {
 #ifdef FUZZING
+        (void)stereo_width;
+        (void)mode_thresholds;
        /* Random mode switching */
        if ((rand()&0xF)==0)
        {