From 9d5ad6c746643431b4cb340f799b9330a7e84a74 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 5 Sep 2018 13:41:19 +0200 Subject: Fix compilation warnings --- src/AACDecoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/AACDecoder.cpp') diff --git a/src/AACDecoder.cpp b/src/AACDecoder.cpp index 3f34ca0..17fd96d 100644 --- a/src/AACDecoder.cpp +++ b/src/AACDecoder.cpp @@ -45,7 +45,7 @@ void AACDecoder::decode_frame(uint8_t *data, size_t len) const bool sbr_flag = data[2] & 0x20; const bool aac_channel_mode = data[2] & 0x10; const bool ps_flag = data[2] & 0x08; - const uint8_t mpeg_surround_config = data[2] & 0x07; + //const uint8_t mpeg_surround_config = data[2] & 0x07; const int core_sr_index = dac_rate ? (sbr_flag ? 6 : 3) : (sbr_flag ? 8 : 5); // 24/48/16/32 kHz @@ -171,7 +171,7 @@ void AACDecoder::decode_au(uint8_t *data, size_t len) std::to_string(result)); } - for (int i = 0; i < m_output_frame.size(); i+=4) { + for (size_t i = 0; i < m_output_frame.size(); i+=4) { const uint8_t *input_buf = m_output_frame.data(); int16_t l = input_buf[i] | (input_buf[i+1] << 8); int16_t r = input_buf[i+2] | (input_buf[i+3] << 8); -- cgit v1.2.3