Skip to content

Commit a533eb8

Browse files
authored
Add files via upload
1 parent 70a1311 commit a533eb8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Audio.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2978,7 +2978,9 @@ void Audio::processWebFile() {
29782978

29792979
// we have a webfile, read the file header first - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
29802980
if(m_controlCounter != 100){
2981-
InBuff.bytesWasRead(readAudioHeader(availableBytes));
2981+
if(InBuff.bufferFilled() > maxFrameSize){ // read the file header first
2982+
InBuff.bytesWasRead(readAudioHeader(InBuff.bufferFilled()));
2983+
}
29822984
return;
29832985
}
29842986

0 commit comments

Comments
 (0)