aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2020-03-31 00:41:13 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2020-03-31 00:41:13 +0200
commitb5a8ad5623e6fd488f3d03f5f9bdb70c5bbb9bcb (patch)
tree0d0356aaf8be8e202865c4449ac07acd3f46f593 /fftools/ffmpeg.c
parent8d019dbc5b44361d38575fe0e13ae2a1ab1cde08 (diff)
downloadffmpeg-b5a8ad5623e6fd488f3d03f5f9bdb70c5bbb9bcb.tar.gz
ffmpeg: Print an error instead of a debug message on exit.
Reported-by: Forum user NewPlaza
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r--fftools/ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index aaaf241314..4fca8b4896 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -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);