[FFmpeg-devel] [PATCH V1 1/5] lavf/utils: change the log level to warning if can't get duration

Jun Zhao mypopydev at gmail.com
Sat Sep 28 15:23:53 EEST 2019


From: Jun Zhao <barryjzhao at tencent.com>

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 at tencent.com>
Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
---
 libavformat/utils.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 9f8a5bf..45cd6b8 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2918,9 +2918,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);
             }
         }
     }
-- 
1.7.1



More information about the ffmpeg-devel mailing list