Unverified Commit 6826f372 authored by Wolle's avatar Wolle Committed by GitHub

skip TS packets with PES start code prefix 0x000000

PUSI = 1
PID is valid
but PES start code  prefix is not 0x000001
parent 54a8acde
......@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 3.0.8p
* Updated on: Feb 20.2024
* Version 3.0.8q
* 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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment