Commit 79597639 authored by Jun Zhao's avatar Jun Zhao

lavf/utils: change the log level to warning if can't get duration

change the log level to warning if can't get duration, it's will help
to debug some duration issue
Signed-off-by: 's avatarvacingfang <vacingfang@tencent.com>
Signed-off-by: 's avatarJun Zhao <barryjzhao@tencent.com>
parent 47b0d081
......@@ -2912,9 +2912,9 @@ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
case AVMEDIA_TYPE_VIDEO:
case AVMEDIA_TYPE_AUDIO:
if (st->start_time != AV_NOPTS_VALUE || st->first_dts != AV_NOPTS_VALUE) {
av_log(ic, AV_LOG_DEBUG, "stream %d : no PTS found at end of file, duration not set\n", i);
av_log(ic, AV_LOG_WARNING, "stream %d : no PTS found at end of file, duration not set\n", i);
} else
av_log(ic, AV_LOG_DEBUG, "stream %d : no TS found at start of file, duration not set\n", i);
av_log(ic, AV_LOG_WARNING, "stream %d : no TS found at start of file, duration not set\n", i);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment