mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-07-01 07:15:39 +00:00
Guard against rtsp response with no content
This commit is contained in:
parent
8599b6042a
commit
0fa805d973
@ -1059,6 +1059,12 @@ int performRtspHandshake(PSERVER_INFORMATION serverInfo) {
|
||||
ret = response.message.response.statusCode;
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
if (!response.payload) {
|
||||
Limelog("RTSP DESCRIBE no content in response\n");
|
||||
ret = -1;
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
if ((StreamConfig.supportedVideoFormats & VIDEO_FORMAT_MASK_AV1) && strstr(response.payload, "AV1/90000")) {
|
||||
if ((serverInfo->serverCodecModeSupport & SCM_AV1_HIGH10_444) && (StreamConfig.supportedVideoFormats & VIDEO_FORMAT_AV1_HIGH10_444)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user