]> git.sesse.net Git - nageru/blobdiff - nageru/x264_encoder.cpp
On errors, abort() instead of exit(1); exit() in a multithreaded program just gives...
[nageru] / nageru / x264_encoder.cpp
index b98d6fdac4de8749ebc65c5b57b35ced79980856..d938393598d637365ba4d1e8e843c8878cdf311c 100644 (file)
@@ -232,7 +232,7 @@ void X264Encoder::init_x264()
        x264 = dyn.x264_encoder_open(&param);
        if (x264 == nullptr) {
                fprintf(stderr, "ERROR: x264 initialization failed.\n");
-               exit(1);
+               abort();
        }
 
        if (global_flags.x264_speedcontrol) {