Skip to content

Commit 5b0449f

Browse files
authored
Add files via upload
1 parent 040fa83 commit 5b0449f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Audio.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
* Created on: Oct 26.2018
55
*
6-
* Version 2.0.8c
7-
* Updated on: Jan 11.2023
6+
* Version 2.0.8d
7+
* Updated on: Jan 13.2023
88
* Author: Wolle (schreibfaul1)
99
*
1010
*/
@@ -2560,6 +2560,7 @@ const char* Audio::parsePlaylist_M3U8(){
25602560
strcpy(m_lastHost, tmp);
25612561
if(tmp){free(tmp); tmp = NULL;}
25622562
if(m_f_Log) log_i("redirect %s", m_playlistContent[i]);
2563+
_client->stop();
25632564
return m_playlistContent[i]; // it's a redirection, a new m3u8 playlist
25642565
}
25652566

@@ -4637,12 +4638,14 @@ bool Audio::ts_parsePacket(uint8_t* packet, uint8_t* packetStart, uint8_t* packe
46374638
if(m_f_Log) log_i("Adaptation Field Length: %d", AFL);
46384639
}
46394640
int PLS = PUSI ? 5 : 4; // PayLoadStart, Payload Unit Start Indicator
4641+
if(AFL > 0) PLS += AFL + 1; // skip adaption field
46404642

46414643
if(PID == 0) {
46424644
// Program Association Table (PAT) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
46434645
if(m_f_Log) log_i("PAT");
46444646
pidsOfPMT.number = 0;
46454647
pidOfAAC = 0;
4648+
46464649
int startOfProgramNums = 8;
46474650
int lengthOfPATValue = 4;
46484651
int sectionLength = ((packet[PLS + 1] & 0x0F) << 8) | (packet[PLS + 2] & 0xFF);

src/Audio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Created on: Oct 28,2018
55
*
66
* Version 2.0.8c
7-
* Updated on: Jan 11,2023
7+
* Updated on: Jan 13,2023
88
* Author: Wolle (schreibfaul1)
99
*/
1010

0 commit comments

Comments
 (0)