[FFmpeg-cvslog] ffmpeg: make timestamp discontinuity logging a warning

Nongji Chen git at videolan.org
Fri Apr 14 15:15:07 EEST 2023


ffmpeg | branch: master | Nongji Chen <nchen at aminocom.com> | Wed Sep 13 11:40:15 2017 +0300| [eb96cfbf57822f7ce0af508d4a9ecd2224cbd565] | committer: Jan Ekström

ffmpeg: make timestamp discontinuity logging a warning

In most cases this should only occur once or so per stream in an
input, and in case the logic ends up in an eternal loop, it should
be visible to the end user instead of being completely invisible.

Signed-off-by: Jan Ekström <jan.ekstrom at 24i.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eb96cfbf57822f7ce0af508d4a9ecd2224cbd565
---

 fftools/ffmpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 6e44542776..e9c6a8281e 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -2512,7 +2512,7 @@ static void ts_discontinuity_detect(InputFile *ifile, InputStream *ist,
             if (FFABS(delta) > 1LL * dts_delta_threshold * AV_TIME_BASE ||
                 pkt_dts + AV_TIME_BASE/10 < FFMAX(ist->pts, ist->dts)) {
                 ifile->ts_offset_discont -= delta;
-                av_log(NULL, AV_LOG_DEBUG,
+                av_log(NULL, AV_LOG_WARNING,
                        "timestamp discontinuity for stream #%d:%d "
                        "(id=%d, type=%s): %"PRId64", new offset= %"PRId64"\n",
                        ist->file_index, ist->st->index, ist->st->id,



More information about the ffmpeg-cvslog mailing list