[FFmpeg-devel,1/2] ffmpeg: improve the intra stream discontinuity message

Submitted by Jan Ekström on Oct. 9, 2018, 11:10 p.m.

Details

Message ID 20181009231026.21828-1-jeebjp@gmail.com
State New
Headers show

Commit Message

Jan Ekström Oct. 9, 2018, 11:10 p.m.
Now it actually tells which stream from which input and of
which type had an absolute DTS discontinuity larger than
dts_delta_threshold.
---
 fftools/ffmpeg.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Michael Niedermayer Oct. 11, 2018, 11:29 a.m.
On Wed, Oct 10, 2018 at 02:10:25AM +0300, Jan Ekström wrote:
> Now it actually tells which stream from which input and of
> which type had an absolute DTS discontinuity larger than
> dts_delta_threshold.
> ---
>  fftools/ffmpeg.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

should be ok

thx

[...]

Patch hide | download patch | download mbox

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index aa495b5d9e..dfdee5100a 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -4472,7 +4472,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)