@@ -3,7 +3,7 @@
mkdir build && cd build
#Release Debug
-cmake -DCMAKE_BUILD_TYPE=Debug ..
+cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
@@ -161,6 +161,7 @@ long initDecoder(const char *url, int force_Iframe, DisableMediaType disableMedi
dctx->end_time = -1;
dctx->disableType = disableMediaType;
char err_info[512] = {0};
+ avformat_network_init();
int ret = avformat_open_input(&(dctx->avformatContext), dctx->url, NULL, NULL);
if (ret != 0) {