Exemple #1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (baseStream != null)
                {
                    baseStream.Dispose();
                }
            }

            if (formatContext != null)
            {
                FF.avformat_close_input(ref formatContext);
            }

            if (ioContext != null)
            {
                FF.av_freep(&ioContext->Buffer);
                FF.av_free(ioContext);
                ioContext = null;
            }
        }