Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/speex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Matthews <tmatth@videolan.org>2019-02-28 01:58:36 +0300
committerTristan Matthews <tmatth@videolan.org>2019-02-28 19:06:52 +0300
commit22fd1448f0c6fc8a7c2a5aee497d1ce6a6f27cce (patch)
tree176b4853528846fdfd8ead1ab698ef0da186251f
parent471fc63f90b236644ac1adc26805da712bd22f6e (diff)
oss-fuzz: drop unused variables
-rw-r--r--contrib/oss-fuzz/speexdec_fuzzer.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/contrib/oss-fuzz/speexdec_fuzzer.cc b/contrib/oss-fuzz/speexdec_fuzzer.cc
index 9b9d986..f2639b3 100644
--- a/contrib/oss-fuzz/speexdec_fuzzer.cc
+++ b/contrib/oss-fuzz/speexdec_fuzzer.cc
@@ -136,7 +136,6 @@ static void *process_header(ogg_packet *op, spx_int32_t enh_enabled, spx_int32_t
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *fuzz_data, size_t fuzz_size)
{
- int c;
output_type output[MAX_FRAME_SIZE];
int frame_size=0, granule_frame_size=0;
void *st=NULL;
@@ -151,8 +150,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *fuzz_data, size_t fuzz_size
ogg_stream_state os;
int enh_enabled;
int nframes=2;
- int print_bitrate=0;
- int close_in=0;
int eos=0;
SpeexStereoState stereo = SPEEX_STEREO_STATE_INIT;
int channels=-1;
@@ -173,7 +170,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *fuzz_data, size_t fuzz_size
while (1)
{
char *data;
- int i, j, nb_read;
+ int j, nb_read;
/*Get the ogg buffer for writing*/
nb_read = bytes_remaining > 200 ? 200 : bytes_remaining;
data = ogg_sync_buffer(&oy, nb_read);
@@ -262,12 +259,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *fuzz_data, size_t fuzz_size
speex_decode_stereo_func(output, frame_size, &stereo);
{
- int frame_offset = 0;
int new_frame_size = frame_size;
if (packet_no == 1 && j==0 && skip_samples > 0)
{
new_frame_size -= skip_samples+lookahead;
- frame_offset = skip_samples+lookahead;
}
if (packet_no == page_nb_packets && skip_samples < 0)
{