mciavi should be rewritten using the AVIFile interface