コード例 #1
0
ファイル: MediaStream.cs プロジェクト: zsybupt/SaarFFmpeg
        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;
            }
        }