]> git.sesse.net Git - nageru/commitdiff
If av_interleaved_write_frame() fails, leave a core file.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 21 Oct 2018 20:56:06 +0000 (22:56 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 21 Oct 2018 20:56:06 +0000 (22:56 +0200)
mux.cpp

diff --git a/mux.cpp b/mux.cpp
index 2be0fe4c16848d885d553745716c26c6917a29d9..bcbbef3c1c7ba429a534c6cda6b4e98cf9852005 100644 (file)
--- a/mux.cpp
+++ b/mux.cpp
@@ -197,7 +197,7 @@ void Mux::write_packet_or_die(const AVPacket &pkt, int64_t unscaled_pts)
        int64_t old_pos = avctx->pb->pos;
        if (av_interleaved_write_frame(avctx, const_cast<AVPacket *>(&pkt)) < 0) {
                fprintf(stderr, "av_interleaved_write_frame() failed\n");
-               exit(1);
+               abort();
        }
        avio_flush(avctx->pb);
        for (MuxMetrics *metric : metrics) {