ngraziano / SharpRTSP

A RTSP handling library
Other
557 stars 182 forks source link

Bug In rtp packet extension reading #108

Closed Revan1985 closed 9 months ago

Revan1985 commented 9 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 9 months ago

I make the modification.

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