Skip to content

Commit

Permalink
Merge pull request #71 from jrz371/InputContainerDisposeCrash
Browse files Browse the repository at this point in the history
Fix System.AccessViolationException in InputContainer.OnDisposing
  • Loading branch information
radek-k committed Apr 2, 2021
2 parents 78ee7aa + caf133e commit d327dc2
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 @@ -119,12 +119,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 d327dc2

Please sign in to comment.