mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-24 05:31:13 +00:00
Fix handling of AV1 keyframes
This commit is contained in:
@@ -825,6 +825,8 @@ static void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length,
|
|||||||
// to determine if a given frame is an IDR frame.
|
// to determine if a given frame is an IDR frame.
|
||||||
if (!(NegotiatedVideoFormat & (VIDEO_FORMAT_MASK_H264 | VIDEO_FORMAT_MASK_H265))) {
|
if (!(NegotiatedVideoFormat & (VIDEO_FORMAT_MASK_H264 | VIDEO_FORMAT_MASK_H265))) {
|
||||||
waitingForIdrFrame = false;
|
waitingForIdrFrame = false;
|
||||||
|
waitingForRefInvalFrame = false;
|
||||||
|
waitingForNextSuccessfulFrame = false;
|
||||||
frameType = FRAME_TYPE_IDR;
|
frameType = FRAME_TYPE_IDR;
|
||||||
}
|
}
|
||||||
// Fall-through
|
// Fall-through
|
||||||
|
|||||||
Reference in New Issue
Block a user