ref: 9bcfdb0d50f9280eaf8d3b3693edd7b0fe6910ce
parent: 85b8e62065b0255786cb0401a0b6f427668e0da6
author: Jean-Marc Valin <[email protected]>
date: Mon Aug 29 12:25:54 EDT 2011
Fixes warnings
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -263,7 +263,6 @@
int ret=0;
int nBytes;
ec_enc enc;
- int silk_internal_bandwidth=-1;
int bytes_target;
int prefill=0;
int start_band = 0;
@@ -556,18 +555,6 @@
{
data[-1] = gen_toc(st->mode, st->Fs/frame_size, st->bandwidth, st->stream_channels);
return 1;
- }
- /* Extract SILK internal bandwidth for signaling in first byte */
- if( st->mode == MODE_SILK_ONLY ) {
- if( st->silk_mode.internalSampleRate == 8000 ) {
- silk_internal_bandwidth = OPUS_BANDWIDTH_NARROWBAND;
- } else if( st->silk_mode.internalSampleRate == 12000 ) {
- silk_internal_bandwidth = OPUS_BANDWIDTH_MEDIUMBAND;
- } else if( st->silk_mode.internalSampleRate == 16000 ) {
- silk_internal_bandwidth = OPUS_BANDWIDTH_WIDEBAND;
- }
- } else {
- SKP_assert( st->silk_mode.internalSampleRate == 16000 );
}
}
--- a/src/repacketizer.c
+++ b/src/repacketizer.c
@@ -60,7 +60,7 @@
OpusRepacketizer *opus_repacketizer_create(void)
{
- return opus_repacketizer_init(opus_alloc(opus_repacketizer_get_size()));
+ return opus_repacketizer_init((OpusRepacketizer *)opus_alloc(opus_repacketizer_get_size()));
}
void opus_repacketizer_destroy(OpusRepacketizer *rp)