mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 09:25:49 +00:00
Add support for GFE 3.0.7
This commit is contained in:
parent
f57bd745b4
commit
bd825776b3
@ -507,10 +507,23 @@ void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length) {
|
||||
lastPacketInStream = streamPacketIndex;
|
||||
|
||||
// If this is the first packet, skip the frame header (if one exists)
|
||||
if (firstPacket && AppVersionQuad[0] >= 5) {
|
||||
if (firstPacket){
|
||||
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
|
||||
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(¤tPos))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user