mirror of https://git.ffmpeg.org/ffmpeg.git
ffmpeg_demux: show fixed timestamps in ts_fixup
Help debugging.
This commit is contained in:
parent
fadfa147f8
commit
9998c31044
|
@ -194,15 +194,19 @@ static void ts_fixup(Demuxer *d, AVPacket *pkt, int *repeat_pict)
|
||||||
const int64_t start_time = ifile->start_time_effective;
|
const int64_t start_time = ifile->start_time_effective;
|
||||||
int64_t duration;
|
int64_t duration;
|
||||||
|
|
||||||
if (debug_ts) {
|
#define SHOW_TS_DEBUG(tag_) \
|
||||||
av_log(ist, AV_LOG_INFO, "demuxer -> type:%s "
|
if (debug_ts) { \
|
||||||
"pkt_pts:%s pkt_pts_time:%s pkt_dts:%s pkt_dts_time:%s duration:%s duration_time:%s\n",
|
av_log(ist, AV_LOG_INFO, "%s -> ist_index:%d:%d type:%s " \
|
||||||
av_get_media_type_string(ist->st->codecpar->codec_type),
|
"pkt_pts:%s pkt_pts_time:%s pkt_dts:%s pkt_dts_time:%s duration:%s duration_time:%s\n", \
|
||||||
av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &ist->st->time_base),
|
tag_, ifile->index, pkt->stream_index, \
|
||||||
av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, &ist->st->time_base),
|
av_get_media_type_string(ist->st->codecpar->codec_type), \
|
||||||
av_ts2str(pkt->duration), av_ts2timestr(pkt->duration, &ist->st->time_base));
|
av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &ist->st->time_base), \
|
||||||
|
av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, &ist->st->time_base), \
|
||||||
|
av_ts2str(pkt->duration), av_ts2timestr(pkt->duration, &ist->st->time_base)); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SHOW_TS_DEBUG("demuxer");
|
||||||
|
|
||||||
if (!ist->wrap_correction_done && start_time != AV_NOPTS_VALUE &&
|
if (!ist->wrap_correction_done && start_time != AV_NOPTS_VALUE &&
|
||||||
ist->st->pts_wrap_bits < 64) {
|
ist->st->pts_wrap_bits < 64) {
|
||||||
int64_t stime, stime2;
|
int64_t stime, stime2;
|
||||||
|
@ -245,6 +249,8 @@ static void ts_fixup(Demuxer *d, AVPacket *pkt, int *repeat_pict)
|
||||||
if (ist->st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO &&
|
if (ist->st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO &&
|
||||||
av_stream_get_parser(ist->st))
|
av_stream_get_parser(ist->st))
|
||||||
*repeat_pict = av_stream_get_parser(ist->st)->repeat_pict;
|
*repeat_pict = av_stream_get_parser(ist->st)->repeat_pict;
|
||||||
|
|
||||||
|
SHOW_TS_DEBUG("demuxer+tsfixup");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void thread_set_name(InputFile *f)
|
static void thread_set_name(InputFile *f)
|
||||||
|
|
Loading…
Reference in New Issue