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
Open any video file var mediaFile = MediaFile.Open(videoPath); then I got all the frames using TryReadNextFrame(out ImageData).
Then I wanted to dispose the mediaFile after that a heap corruption or access violation happens.
I have traced the problem to InputContainer class, OnDisposing() method line marked with ->>>>
protected override void OnDisposing()
{
Video?.Dispose();
var ptr = Pointer;
ffmpeg.avformat_close_input(&ptr);
// Note: the internal buffer could have changed, and be != avio_ctx_buffer
if (Pointer->pb != null)
{
ffmpeg.av_free(Pointer->pb->buffer);
->>>> ffmpeg.avio_context_free(&Pointer->pb);
}
}
The text was updated successfully, but these errors were encountered:
Open any video file
var mediaFile = MediaFile.Open(videoPath);
then I got all the frames usingTryReadNextFrame(out ImageData)
.Then I wanted to dispose the mediaFile after that a heap corruption or access violation happens.
I have traced the problem to InputContainer class, OnDisposing() method line marked with ->>>>
The text was updated successfully, but these errors were encountered: