Skip to content

Commit 05e8ac5

Browse files
committed
B Fixed special case when the server does not send VPS in SDP
1 parent 0b9c9d4 commit 05e8ac5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/SharpRTSPClient/RTSPClient.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,13 @@ private void HandleDescribeResponse(RtspResponse message)
10231023
byte[] pps = vpsSpsPps[2];
10241024
streamConfigurationData = new H265StreamConfigurationData(vps, sps, pps);
10251025
}
1026+
else if (vpsSpsPps.Count >= 2)
1027+
{
1028+
// some implementations only send SPS and PPS, e.g. Chromium Canary 136
1029+
byte[] sps = vpsSpsPps[0];
1030+
byte[] pps = vpsSpsPps[1];
1031+
streamConfigurationData = new H265StreamConfigurationData(null, sps, pps);
1032+
}
10261033
}
10271034

10281035
// Send the SETUP RTSP command if we have a matching Payload Decoder

0 commit comments

Comments
 (0)