Skip to content

Commit

Permalink
fix some warnings in Arduino V3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
schreibfaul1 committed Sep 10, 2024
1 parent 32d5f04 commit ae58d3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*
* Created on: Oct 27.2018
*
* Version 3.0.12n
* Updated on: Sep 09.2024
* Version 3.0.12o
* Updated on: Sep 10.2024
* Author: Wolle (schreibfaul1)
*
*/
Expand Down Expand Up @@ -4215,7 +4215,7 @@ void Audio::showstreamtitle(const char* ml) {

if(m_streamTitleHash != hash) {
m_streamTitleHash = hash;
AUDIO_INFO("%s", sTit);
AUDIO_INFO("%.*s", m_ibuffSize, sTit);
uint8_t pos = 12; // remove "StreamTitle="
if(sTit[pos] == '\'') pos++; // remove leading \'
if(sTit[strlen(sTit) - 1] == '\'') sTit[strlen(sTit) - 1] = '\0'; // remove trailing \'
Expand All @@ -4241,7 +4241,7 @@ void Audio::showstreamtitle(const char* ml) {
}
if(m_streamTitleHash != hash) {
m_streamTitleHash = hash;
AUDIO_INFO("%s", sUrl);
AUDIO_INFO("%.*s", m_ibuffSize, sUrl);
}
if(sUrl) {
free(sUrl);
Expand Down
2 changes: 1 addition & 1 deletion src/aac_decoder/libfaad/neaacdec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9322,7 +9322,7 @@ static uint8_t section_data(NeAACDecStruct_t* hDecoder, ic_stream_t* ics, bitfil
k += sect_len;
i++;
}
ics->num_sec[g] = i;
((uint8_t*)ics->num_sec)[g] = i;
/* the sum of all sect_len_incr elements for a given window group shall equal max_sfb */
if(k != ics->max_sfb) { return 32; }
}
Expand Down

0 comments on commit ae58d3f

Please sign in to comment.