ngraziano / SharpRTSP

A RTSP handling library
Other
538 stars 180 forks source link

Bug In rtp packet extension reading #108

Closed Revan1985 closed 7 months ago

Revan1985 commented 7 months ago

Hi, there is a bug in the RtpPacket.cs file, The property Extension has a wrong reading. Instead of public ReadOnlySpan<byte> Extension => rawData[HeaderSize..ExtensionSize]; should be public ReadOnlySpan<byte> Extension => rawData[HeaderSize..(HeaderSize + ExtensionSize)];

I don't know how to create a new pull request when one is pending, sorry

ngraziano commented 7 months ago

I make the modification.

To make multiple PR you only need to make a new branch from the main branch "dotnetcore"