Skip to content

Commit

Permalink
Guard against rtsp response with no content
Browse files Browse the repository at this point in the history
  • Loading branch information
ns6089 authored and cgutman committed Oct 16, 2024
1 parent 8599b60 commit 0fa805d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/RtspConnection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 0fa805d

Please sign in to comment.