Apparently we're back to 8 byte first frame headers on GFE 3.2

This commit is contained in:
Cameron Gutman 2016-12-13 20:24:34 -08:00
parent de915efaaf
commit f1adbc1e6b

View File

@ -509,14 +509,21 @@ void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length) {
// If this is the first packet, skip the frame header (if one exists)
if (firstPacket){
if ((AppVersionQuad[0] > 7) ||
(AppVersionQuad[0] == 7 && AppVersionQuad[1] > 1) ||
(AppVersionQuad[0] == 7 && AppVersionQuad[1] == 1 && AppVersionQuad[2] >= 350)) {
// >= 7.1.350 should use the 8 byte header again
currentPos.offset += 8;
currentPos.length -= 8;
}
else if ((AppVersionQuad[0] > 7) ||
(AppVersionQuad[0] == 7 && AppVersionQuad[1] > 1) ||
(AppVersionQuad[0] == 7 && AppVersionQuad[1] == 1 && AppVersionQuad[2] >= 320)) {
// Anything over 7.1.320 should use the 12 byte frame header
// [7.1.320, 7.1.350) should use the 12 byte frame header
currentPos.offset += 12;
currentPos.length -= 12;
}
else if (AppVersionQuad[0] >= 5) {
// 5.x to 7.1.310 should use the 8 byte header
// [5.x, 7.1.320) should use the 8 byte header
currentPos.offset += 8;
currentPos.length -= 8;
}