diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-09-05 13:41:19 +0200 | 
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-09-05 13:41:19 +0200 | 
| commit | 9d5ad6c746643431b4cb340f799b9330a7e84a74 (patch) | |
| tree | a0bc474c8b69c81d18879196a862007f30eba7a3 /src/AACDecoder.cpp | |
| parent | 239378a7fce009c902ced567f545f1251e3c80e9 (diff) | |
| download | ODR-SourceCompanion-9d5ad6c746643431b4cb340f799b9330a7e84a74.tar.gz ODR-SourceCompanion-9d5ad6c746643431b4cb340f799b9330a7e84a74.tar.bz2 ODR-SourceCompanion-9d5ad6c746643431b4cb340f799b9330a7e84a74.zip | |
Fix compilation warnings
Diffstat (limited to 'src/AACDecoder.cpp')
| -rw-r--r-- | src/AACDecoder.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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); | 
