]> git.sesse.net Git - nageru/blobdiff - futatabi/export.cpp
On errors, abort() instead of exit(1); exit() in a multithreaded program just gives...
[nageru] / futatabi / export.cpp
index a865ac6e9369331a3806ef430c70c82b12d33392..5b8da136370a7dd8b649bce379e436daa7e8b176 100644 (file)
@@ -104,7 +104,7 @@ void export_multitrack_clip(const string &filename, const Clip &clip)
                AVStream *avstream_video = avformat_new_stream(avctx, nullptr);
                if (avstream_video == nullptr) {
                        fprintf(stderr, "avformat_new_stream() failed\n");
-                       exit(1);
+                       abort();
                }
                avstream_video->time_base = AVRational{ 1, TIMEBASE };
                avstream_video->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;