From: Steinar H. Gunderson Date: Sun, 21 Oct 2018 20:56:06 +0000 (+0200) Subject: If av_interleaved_write_frame() fails, leave a core file. X-Git-Tag: 1.8.0~76^2~46 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=979a791bbf755ca1f4f8f3e7bf7bcde676a72dbe;p=nageru If av_interleaved_write_frame() fails, leave a core file. --- 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) {