Use avformat_free_context for cleaning up muxers