]> git.sesse.net Git - ffmpeg/commitdiff
ffmpeg: Print an error instead of a debug message on exit.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Mon, 30 Mar 2020 22:41:13 +0000 (00:41 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Mon, 30 Mar 2020 22:41:13 +0000 (00:41 +0200)
Reported-by: Forum user NewPlaza
fftools/ffmpeg.c

index aaaf24131449796c506f6ac27bdec1b3b15939a8..4fca8b48964a122bc827bfe605490a1a7515a3ec 100644 (file)
@@ -788,6 +788,8 @@ static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int u
             int64_t max = ost->last_mux_dts + !(s->oformat->flags & AVFMT_TS_NONSTRICT);
             if (pkt->dts < max) {
                 int loglevel = max - pkt->dts > 2 || st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO ? AV_LOG_WARNING : AV_LOG_DEBUG;
+                if (exit_on_error)
+                    loglevel = AV_LOG_ERROR;
                 av_log(s, loglevel, "Non-monotonous DTS in output stream "
                        "%d:%d; previous: %"PRId64", current: %"PRId64"; ",
                        ost->file_index, ost->st->index, ost->last_mux_dts, pkt->dts);