ngraziano / SharpRTSP

A RTSP handling library
Other
557 stars 182 forks source link

ReadAsync method problems #104

Closed Revan1985 closed 9 months ago

Revan1985 commented 10 months ago

There is a problem with the ReadAsync method in the buffer for netstandard2.0 with Memory. The netstandard 2 ReadAsync method cause artifacts when receiving h264/5 streams, because seems to not be able to use the correct array offset and length...

the net8 is more stable, and cause less gc pressure in project

ngraziano commented 9 months ago

There was a bug in the polyfill library. I have fix the problem in the Meziantou.Polyfill library and update version, it should work now.

Revan1985 commented 9 months ago

I was sure was a problem with the standard .net implementation... After update and recompile now works as expected. I will close this pull request.