]> git.sesse.net Git - nageru/blobdiff - nageru/x264_dynamic.cpp
Fix a Clang 19 warning.
[nageru] / nageru / x264_dynamic.cpp
index f8b63cea69769d76480300dee7d50d63e6d4a0d0..77ba357b0ad60469f61b9d5a85dfa58ca4abe010 100644 (file)
@@ -8,6 +8,7 @@
 #include <string.h>
 
 #include <string>
+#include <x264.h>
 
 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;