Skip to content

Commit 9d1759e

Browse files
authored
Jump faster over embedded images within the id3 header
1 parent 5a1bd13 commit 9d1759e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Audio.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
* Created on: Oct 26.2018
55
*
6-
* Version 3.0.7a
7-
* Updated on: Nov 11.2023
6+
* Version 3.0.7b
7+
* Updated on: Nov 27.2023
88
* Author: Wolle (schreibfaul1)
99
*
1010
*/
@@ -1583,10 +1583,10 @@ int Audio::read_ID3_Header(uint8_t *data, size_t len) {
15831583
}
15841584
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
15851585
if(m_controlCounter == 5){ // If the frame is larger than 512 bytes, skip the rest
1586-
if(framesize > 512){
1587-
framesize -= 512;
1588-
remainingHeaderBytes -= 512;
1589-
return 512;
1586+
if(framesize > 1024){
1587+
framesize -= 1024;
1588+
remainingHeaderBytes -= 1024;
1589+
return 1024;
15901590
}
15911591
else {
15921592
m_controlCounter = 3; // check next frame
@@ -1628,7 +1628,7 @@ int Audio::read_ID3_Header(uint8_t *data, size_t len) {
16281628
}
16291629

16301630
size_t fs = framesize;
1631-
if(fs >512) fs = 512;
1631+
if(fs >1024) fs = 1024;
16321632
for(int i=0; i<fs; i++){
16331633
m_ibuff[i] = *(data + i);
16341634
}

0 commit comments

Comments
 (0)