mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-07-02 15:56:02 +00:00
Fix spurious asserts in the unencrypted audio path with Sunshine
This commit is contained in:
parent
046c231b33
commit
ba1fc33672
@ -226,8 +226,9 @@ static void decodeInputData(PQUEUED_AUDIO_PACKET packet) {
|
|||||||
else {
|
else {
|
||||||
// Opus header should stay constant for the entire stream.
|
// Opus header should stay constant for the entire stream.
|
||||||
// If it doesn't, it may indicate that the RtpAudioQueue
|
// If it doesn't, it may indicate that the RtpAudioQueue
|
||||||
// incorrectly recovered a data shard.
|
// incorrectly recovered a data shard. Sunshine violates
|
||||||
LC_ASSERT_VT(((uint8_t*)(rtp + 1))[0] == opusHeaderByte);
|
// this for surround sound in some cases, so just ignore it.
|
||||||
|
LC_ASSERT_VT(((uint8_t*)(rtp + 1))[0] == opusHeaderByte || IS_SUNSHINE());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user