Fix video header parsing assert with GFE 3.27
This commit is contained in:
parent
cf0a0ced90
commit
8186687093
1 changed files with 16 additions and 2 deletions
|
|
@ -827,8 +827,22 @@ static void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length,
|
|||
}
|
||||
}
|
||||
|
||||
if (APP_VERSION_AT_LEAST(7, 1, 446)) {
|
||||
// >= 7.1.446 uses 2 different header lengths based on the first byte:
|
||||
if (APP_VERSION_AT_LEAST(7, 1, 450)) {
|
||||
// >= 7.1.450 uses 2 different header lengths based on the first byte:
|
||||
// 0x01 indicates an 8 byte header
|
||||
// 0x81 indicates a 44 byte header
|
||||
if (currentPos.data[0] == 0x01) {
|
||||
currentPos.offset += 8;
|
||||
currentPos.length -= 8;
|
||||
}
|
||||
else {
|
||||
LC_ASSERT(currentPos.data[0] == (char)0x81);
|
||||
currentPos.offset += 44;
|
||||
currentPos.length -= 44;
|
||||
}
|
||||
}
|
||||
else if (APP_VERSION_AT_LEAST(7, 1, 446)) {
|
||||
// [7.1.446, 7.1.450) uses 2 different header lengths based on the first byte:
|
||||
// 0x01 indicates an 8 byte header
|
||||
// 0x81 indicates a 41 byte header
|
||||
if (currentPos.data[0] == 0x01) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue