You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.LogTrace(nameof(RtpMediaPacketReceived)+" text RTP packet received from {RemoteEndPoint} ssrc {SyncSource} seqnum {SequenceNumber} timestamp {Timestamp} payload type {PayloadType}.",remoteEndPoint,hdr.SyncSource,hdr.SequenceNumber,hdr.Timestamp,hdr.PayloadType);
@@ -498,16 +498,16 @@ doubling the height of the image.
498
498
499
499
#endregion
500
500
501
-
Type=(uint)(packet.Payload[offset++]);
501
+
Type=packet.GetPayloadByteAt(offset++);
502
502
type=Type&1;
503
503
if(type>3||type>6)
504
504
{
505
505
thrownewArgumentException("Type numbers 2-5 are reserved and SHOULD NOT be used. Applications on RFC 2035 should be updated to indicate the presence of restart markers with type 64 or 65 and the Restart Marker header.");
506
506
}
507
507
508
-
Quality=(uint)packet.Payload[offset++];
509
-
Width=(uint)(packet.Payload[offset++]*8);// This should have been 128 or > and the standard would have worked for all resolutions
510
-
Height=(uint)(packet.Payload[offset++]*8);// Now in certain highres profiles you will need an OnVif extension before the RtpJpeg Header
508
+
Quality=packet.GetPayloadByteAt(offset++);
509
+
Width=(uint)(packet.GetPayloadByteAt(offset++)*8);// This should have been 128 or > and the standard would have worked for all resolutions
510
+
Height=(uint)(packet.GetPayloadByteAt(offset++)*8);// Now in certain highres profiles you will need an OnVif extension before the RtpJpeg Header
511
511
//It is worth noting Rtp does not care what you send and more tags such as comments and or higher resolution pictures may be sent and these values will simply be ignored.
0 commit comments