Open arunkmarhudrom opened 1 year ago
sorry, I no longer support this repository.
@arunkmarhudrom try replace TestRtspClient.FrameDecoder
public class FrameDecoder : IFrameDecoder
{
private readonly static ThreadLocal
public FFmpegVideoDecoder GetDecoderForFrame(RawVideoFrame videoFrame)
{
if (videoFrame is RawJpegFrame)
return MJPEG.Value;
if (videoFrame is RawH264Frame)
return H264.Value;
return null;
}
public IDecodedVideoFrame TryDecode(RawVideoFrame rawVideoFrame)
{
var decoder = GetDecoderForFrame(rawVideoFrame);
return decoder.TryDecode(rawVideoFrame);
}
} }
Throw error - System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'