From 979a791bbf755ca1f4f8f3e7bf7bcde676a72dbe Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 21 Oct 2018 22:56:06 +0200 Subject: [PATCH] If av_interleaved_write_frame() fails, leave a core file. --- mux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mux.cpp b/mux.cpp index 2be0fe4..bcbbef3 100644 --- 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(&pkt)) < 0) { fprintf(stderr, "av_interleaved_write_frame() failed\n"); - exit(1); + abort(); } avio_flush(avctx->pb); for (MuxMetrics *metric : metrics) { -- 2.39.2