Skip to content

Commit

Permalink
Fix System.AccessViolationException in InputContainer.OnDisposing
Browse files Browse the repository at this point in the history
  • Loading branch information
jrz371 committed Mar 8, 2021
1 parent bc7de48 commit caf133e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions FFMediaToolkit/Decoding/Internal/InputContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,6 @@ protected override void OnDisposing()

var ptr = Pointer;
ffmpeg.avformat_close_input(&ptr);

if (Pointer->pb != null && Pointer->pb->buffer != null)
{
ffmpeg.av_free(Pointer->pb->buffer);
ffmpeg.avio_context_free(&Pointer->pb);
}
}

private static InputContainer MakeContainer(string url, MediaOptions options, AVFormatContextDelegate contextDelegate)
Expand Down

0 comments on commit caf133e

Please sign in to comment.