aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2018-10-10 01:50:08 +0300
committerJan Ekström <jeebjp@gmail.com>2018-12-18 21:04:57 +0200
commit3a36b0c4b8f2a4529fb8d1df217cada04e59aef7 (patch)
tree1db3572738bb2cd25c1536cad22ada58f035abe6 /fftools/ffmpeg.c
parentc0fb6f963fd7ee555ba2fdc254444e208bb0bc46 (diff)
downloadffmpeg-3a36b0c4b8f2a4529fb8d1df217cada04e59aef7.tar.gz
ffmpeg: improve the intra stream discontinuity message
Now it actually tells which stream from which input and of which type had an absolute DTS discontinuity larger than dts_delta_threshold.
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r--fftools/ffmpeg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 6abcc57776..544f1a1cef 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -4471,7 +4471,10 @@ static int process_input(int file_index)
pkt_dts + AV_TIME_BASE/10 < FFMAX(ist->pts, ist->dts)) {
ifile->ts_offset -= delta;
av_log(NULL, AV_LOG_DEBUG,
- "timestamp discontinuity %"PRId64", new offset= %"PRId64"\n",
+ "timestamp discontinuity for stream #%d:%d "
+ "(id=%d, type=%s): %"PRId64", new offset= %"PRId64"\n",
+ ist->file_index, ist->st->index, ist->st->id,
+ av_get_media_type_string(ist->dec_ctx->codec_type),
delta, ifile->ts_offset);
pkt.dts -= av_rescale_q(delta, AV_TIME_BASE_Q, ist->st->time_base);
if (pkt.pts != AV_NOPTS_VALUE)