Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESP32-audioI2S
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ESP32-audioI2S
Commits
6826f372
Unverified
Commit
6826f372
authored
Mar 04, 2024
by
Wolle
Committed by
GitHub
Mar 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip TS packets with PES start code prefix 0x000000
PUSI = 1 PID is valid but PES start code prefix is not 0x000001
parent
54a8acde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/Audio.cpp
src/Audio.cpp
+7
-2
No files found.
src/Audio.cpp
View file @
6826f372
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 3.0.8
p
* Updated on:
Feb 20
.2024
* Version 3.0.8
q
* Updated on:
Mar 04
.2024
* Author: Wolle (schreibfaul1)
*
*/
...
...
@@ -5495,6 +5495,11 @@ bool Audio::ts_parsePacket(uint8_t* packet, uint8_t* packetStart, uint8_t* packe
PES_DataLength -= (PES_HeaderDataLength + 3);
return true;
}
if(firstByte == 0 && secondByte == 0 && thirdByte == 0){
// PES packet startcode prefix is 0x000000
// skip such packets
return true;
}
}
*packetStart = 0;
*packetLength = 0;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment