mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Apparently we're back to 8 byte first frame headers on GFE 3.2
This commit is contained in:
parent
de915efaaf
commit
f1adbc1e6b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user