diff --git a/FFMediaToolkit/Decoding/Internal/InputContainer.cs b/FFMediaToolkit/Decoding/Internal/InputContainer.cs index d810b58..1c3643a 100644 --- a/FFMediaToolkit/Decoding/Internal/InputContainer.cs +++ b/FFMediaToolkit/Decoding/Internal/InputContainer.cs @@ -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)