// Saves the video. public AviConverter(string fromName, string toName, string codec) { fileFrom = fromName; fileTo = toName; writer = new AVIWriter(codec); reader = new AVIReader(); }
// virtual dispose protected virtual void Dispose(bool disposing) { if (disposing) { if (reader != null) { reader.Close(); reader.Dispose(); reader = null; } if (writer != null) { writer.Close(); writer.Dispose(); writer = null; } } }