diff options
author | Andreas Hakon <andreas.hakon@protonmail.com> | 2019-04-19 08:58:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-04-19 17:14:44 +0200 |
commit | e750dc9de61b4534776f500e22d32a07c6425231 (patch) | |
tree | 76ff6698357256063f6b950129cc2e0aef4f20c2 /fftools/ffmpeg.c | |
parent | a87774636b870ee1888bec24327062baf4841ea0 (diff) | |
download | ffmpeg-e750dc9de61b4534776f500e22d32a07c6425231.tar.gz |
libavformat: improve logs with cur_dts
This patch improves the logs when the message "cur_dts is invalid" appears.
If helps to identify which stream generates the trouble,
and the status of the stream.
A lot of users suffers with the message, and the origin varies.
The improved message can help to discover the cause.
Signed-off-by: Andreas Hakon <andreas.hakon@protonmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 0f157d67d8..01f04103cf 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3875,7 +3875,9 @@ static OutputStream *choose_output(void) av_rescale_q(ost->st->cur_dts, ost->st->time_base, AV_TIME_BASE_Q); if (ost->st->cur_dts == AV_NOPTS_VALUE) - av_log(NULL, AV_LOG_DEBUG, "cur_dts is invalid (this is harmless if it occurs once at the start per stream)\n"); + av_log(NULL, AV_LOG_DEBUG, + "cur_dts is invalid st:%d (%d) [init:%d i_done:%d finish:%d] (this is harmless if it occurs once at the start per stream)\n", + ost->st->index, ost->st->id, ost->initialized, ost->inputs_done, ost->finished); if (!ost->initialized && !ost->inputs_done) return ost; |