]> git.sesse.net Git - nageru/blobdiff - nageru/x264_dynamic.cpp
IWYU-fix nageru/*.cpp.
[nageru] / nageru / x264_dynamic.cpp
index f8b63cea69769d76480300dee7d50d63e6d4a0d0..8cdf42beb57c35843bd615cc28114ad0772f031b 100644 (file)
@@ -8,6 +8,7 @@
 #include <string.h>
 
 #include <string>
+#include <x264.h>
 
 using namespace std;
 
@@ -63,7 +64,7 @@ X264Dynamic load_x264_for_bit_depth(unsigned depth)
        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;