From patchwork Sun Sep 29 09:27:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 15379 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 0B10B449A01 for ; Sun, 29 Sep 2019 12:34:22 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E6B7A689910; Sun, 29 Sep 2019 12:34:21 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0B8AB689827 for ; Sun, 29 Sep 2019 12:34:15 +0300 (EEST) Received: by mail-pg1-f195.google.com with SMTP id t14so5677143pgs.3 for ; Sun, 29 Sep 2019 02:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WB8856+Fz9WbzBMZx2hfh8iF97HaQAr4QddKMYNEhI0=; b=e6VhcpEeFtIExcnuX9T5O+pQXhTQtjy06OJKeGedV4qFCXFgxIro7lnZFAkoG1w2Vc OR3VKPRS0Z4dDbTWsj93z8Nd40AzuR38KamZ6nVQS1YbAuDE7RN8qpcZXJQermnGYd37 j2n5xcZVDIU9NfK+AKkbPctuV6G10zeI+HWKwfWxmY32xJpGujGQVGuobnkYKsXusaiC 8gQxnODScAZ/+9AMXNA+OUPCTZ0ebYiVt9v2MjiHMIjX8SFnl5M5Pgx/zYoBsmdw+qjT DjumRXADcMEQ+QeWhNrp8Gu2eLvc0lbtfmqr+7JU+IFwZ1IBvlA7qVj9m81hqg2ceBIv mNrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WB8856+Fz9WbzBMZx2hfh8iF97HaQAr4QddKMYNEhI0=; b=Ndty+Lsn5TqJ5dSRNLf9o7uq6J/889gW5IHBupef9sRLCK38IaDYWWCM3iluJYiWoy +KncxHPF8sffnCm/8Zr9uCw0RjXuB220Qs2f9MOc8BLeI5s9GBRCR2slnLU+GvXsC25E iC77c3N2UP2dHijbROKNbYmQVlTusrArNu7xuhwhy2SIkSDO9myTPwhWwcQN/CiZDYt+ nTZ1V1T/KJCkENqjtYgXuNULur2Tnn4850kDHYJUdCaawV0bDn1QLSQ9goKlyMmNErwt K6gzRL/zDjUwRvhVKso7tAVEPqm47m14DHKOHxfnOIgLS3cgj/gydS3ro3yoHDbck4Go ohwQ== X-Gm-Message-State: APjAAAVbTEm3QywMb7IXf7tt9TtcrgUhbpoHPFdjkIw9pNqZyVqMUj5x GNiqfWuO/RMuCoKbpUTbOGTk0J70 X-Google-Smtp-Source: APXvYqw9CP8DM0CXa6Usd2wzD9K+PcdrMQ97Th8ZbKuF3XgyypNChwz1LwVufcvq4Kp/GvyjQsQ6KQ== X-Received: by 2002:aa7:86c1:: with SMTP id h1mr15168314pfo.128.1569749281592; Sun, 29 Sep 2019 02:28:01 -0700 (PDT) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id i132sm2585106pgd.47.2019.09.29.02.28.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Sep 2019 02:28:01 -0700 (PDT) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sun, 29 Sep 2019 17:27:50 +0800 Message-Id: <1569749274-13151-2-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1569749274-13151-1-git-send-email-mypopydev@gmail.com> References: <1569749274-13151-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V2 1/5] lavf/utils: change the log level to warning if can't get duration X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Jun Zhao , vacingfang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao change the log level to warning if can't get duration, it's will help to debug some duration issue Signed-off-by: vacingfang Signed-off-by: Jun Zhao --- libavformat/utils.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 7545d75..07f02a7 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); } } }