Add support for GFE 3.0.7

This commit is contained in:
Cameron Gutman 2016-10-05 17:31:19 -07:00
parent f57bd745b4
commit bd825776b3

View File

@ -507,9 +507,22 @@ void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length) {
lastPacketInStream = streamPacketIndex; lastPacketInStream = streamPacketIndex;
// If this is the first packet, skip the frame header (if one exists) // If this is the first packet, skip the frame header (if one exists)
if (firstPacket && AppVersionQuad[0] >= 5) { if (firstPacket){
currentPos.offset += 8; if ((AppVersionQuad[0] > 7) ||
currentPos.length -= 8; (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
currentPos.offset += 12;
currentPos.length -= 12;
}
else if (AppVersionQuad[0] >= 5) {
// 5.x to 7.1.310 should use the 8 byte header
currentPos.offset += 8;
currentPos.length -= 8;
}
else {
// Other versions don't have a frame header at all
}
} }
if (firstPacket && isIdrFrameStart(&currentPos)) if (firstPacket && isIdrFrameStart(&currentPos))