X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fx264_dynamic.cpp;h=8cdf42beb57c35843bd615cc28114ad0772f031b;hb=HEAD;hp=f8b63cea69769d76480300dee7d50d63e6d4a0d0;hpb=9b7d691b4cc5db7dbfc18c82e86c1207fcac4722;p=nageru diff --git a/nageru/x264_dynamic.cpp b/nageru/x264_dynamic.cpp index f8b63ce..77ba357 100644 --- a/nageru/x264_dynamic.cpp +++ b/nageru/x264_dynamic.cpp @@ -8,6 +8,7 @@ #include #include +#include using namespace std; @@ -57,13 +58,13 @@ X264Dynamic load_x264_for_bit_depth(unsigned depth) x264_suffix = string(ptr, (m->l_name + strlen(m->l_name)) - ptr); break; } - } + } dlclose(handle); if (x264_dir.empty()) { fprintf(stderr, "ERROR: Requested %d-bit x264, but is not linked to such an x264, and could not find one.\n", depth); - exit(1); + abort(); } string x264_10b_string = x264_dir + "/x264-10bit" + x264_suffix; @@ -71,7 +72,7 @@ X264Dynamic load_x264_for_bit_depth(unsigned depth) if (x264_dlhandle == nullptr) { fprintf(stderr, "ERROR: Requested %d-bit x264, but is not linked to such an x264, and %s would not load.\n", depth, x264_10b_string.c_str()); - exit(1); + abort(); } dyn.handle = x264_dlhandle;