parse configuration file

This commit is contained in:
loki 2019-12-03 23:19:00 +01:00
commit 6493b0cca1
4 changed files with 113 additions and 1 deletions

View file

@ -14,8 +14,13 @@ extern "C" {
#include <libavcodec/avcodec.h>
#include "config.h"
using namespace std::literals;
int main() {
int main(int argc, char *argv[]) {
if(argc > 1) {
config::parse_file(argv[1]);
}
reed_solomon_init();
std::thread httpThread { nvhttp::start };