]> git.sesse.net Git - ffmpeg/commitdiff
lavf/utils: change the log level to warning if can't get duration
authorJun Zhao <barryjzhao@tencent.com>
Thu, 26 Sep 2019 05:16:24 +0000 (13:16 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Mon, 30 Sep 2019 02:06:09 +0000 (10:06 +0800)
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>
libavformat/utils.c

index 7545d75d5b6c65915c043d25c114e389f112a5ee..07f02a7c9453837956d1b2098c58a39ede6d3939 100644 (file)
@@ -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);
             }
         }
     }