shithub: opus

Download patch

ref: 5b6791bf754509def9e1a90ce2d660b2d4bd5e78
parent: a45724ef7f46f25ebad62b3e8a0b218f9da89d75
author: Ralph Giles <[email protected]>
date: Fri Jul 29 05:39:25 EDT 2011

Remove an unused variable.

Fix a warning on gcc 4.6. 'internal_sampling_rate_Hz' was
replaced by 'bandwidth' in a10e8796 but the local variable
holding the setting wasn't removed.

--- a/src/test_opus.c
+++ b/src/test_opus.c
@@ -94,7 +94,6 @@
    unsigned char *data[2];
    int sampling_rate;
    int use_vbr;
-   int internal_sampling_rate_Hz;
    int max_payload_bytes;
    int complexity;
    int use_inbandfec;
@@ -151,7 +150,6 @@
    /* defaults: */
    use_vbr = 1;
    bandwidth=OPUS_BANDWIDTH_AUTO;
-   internal_sampling_rate_Hz = sampling_rate;
    max_payload_bytes = MAX_PACKET;
    complexity = 10;
    use_inbandfec = 0;