mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-02-16 02:21:07 +00:00
Guard against rtsp response with no content
This commit is contained in:
@@ -1060,6 +1060,12 @@ int performRtspHandshake(PSERVER_INFORMATION serverInfo) {
|
|||||||
goto Exit;
|
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 ((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)) {
|
if ((serverInfo->serverCodecModeSupport & SCM_AV1_HIGH10_444) && (StreamConfig.supportedVideoFormats & VIDEO_FORMAT_AV1_HIGH10_444)) {
|
||||||
NegotiatedVideoFormat = VIDEO_FORMAT_AV1_HIGH10_444;
|
NegotiatedVideoFormat = VIDEO_FORMAT_AV1_HIGH10_444;
|
||||||
|
|||||||
Reference in New Issue
Block a user