diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2019-09-26 13:16:24 +0800 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2019-09-30 10:06:09 +0800 |
commit | 79597639cb0a0bc7dac063876f0252be0f56d592 (patch) | |
tree | f093bf2bc3b87f8f413ab51cb9e2d5d4341a215a | |
parent | 47b0d0812e7738ee193249d2507b4d1630774614 (diff) | |
download | ffmpeg-79597639cb0a0bc7dac063876f0252be0f56d592.tar.gz |
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: vacingfang <vacingfang@tencent.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 7545d75d5b..07f02a7c94 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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); } } } |