From patchwork Tue Jan 11 09:58:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 33213 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp3545854iog; Tue, 11 Jan 2022 02:00:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3wC+yoVKYhZlqVXnjja9Xf9tcncA1G3loiHwdd/TY0kSXDBUJ1iC7qbypBrFGHFlrmAdF X-Received: by 2002:a50:ec90:: with SMTP id e16mr3548770edr.355.1641895249190; Tue, 11 Jan 2022 02:00:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641895249; cv=none; d=google.com; s=arc-20160816; b=VxbzITcn+k15Ry7lybuSd1ImlI/4s71vdngRkMo0ERzdec5VWR3DztndooSxMlObvb Rb8CLjMxPMa37+Rnz7As4gCyMlWL9N4lGwWVRIpLzPvmlR68YSXiIhzuUCQQ4JTiUnHX B7iU/0EHv2OnJ2cvDHVlYN/g581eGHNGB2ejjW/MpmVyym8eRikLTGg+lzV+AAduFCfI RP6kUdcYFCsag+9T/mwIuq5WoWdhejjDFj7wgRG9mNKlOvsM5n5MEOv36bY9xT0xZgCS CapoKKEJMYnYgu9Ua77PvOzxZANCgV3rBiBqOeec1GiMAjwKY8Ul+7hOI+QxtOCNPAZQ fAIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=xmOa7nCUY91jgfXwTipHz0NK6TjmIPD7UatN8y2ba6Y=; b=RFxhM3g6ybohfEZwuF0qtsoB2ec+FfKeqUlvM1TAQjCe425SI09Qy8yiYDng91MsTr NHtjdtb1WPQo5ciI7eMHDQ35mnWABHmOXxn/sQ63Zhfi2VWL81qAPLaWn9CLZ2FW4m2a JO/XuXUFqvCnHmnnW1JPZ3plNFH/+SuCkYeXcgC4RLvAB2wY2fBx8mMdfyIa1FRw+L+r RIuT6sZXATw4/Zp/NmPDb4M2Zl0HXiaC6xVDXNGGcq8K2wSi6QwYcEVtJAjNvLM8JMLr 4R3lb58oWCdSF+ltkb3WlE2/r6zCEFzljeFsSIiks/jTKTMljAyb5d5CWOE5ExQzYezs TVPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y14si317973eda.568.2022.01.11.02.00.48; Tue, 11 Jan 2022 02:00:49 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 236E668AF71; Tue, 11 Jan 2022 11:59:20 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A531668AF3E for ; Tue, 11 Jan 2022 11:59:14 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 2D8F0240593 for ; Tue, 11 Jan 2022 10:59:11 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id oCf9AVaEnpNe for ; Tue, 11 Jan 2022 10:59:10 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id D08092405F5 for ; Tue, 11 Jan 2022 10:59:02 +0100 (CET) Received: by libav.khirnov.net (Postfix, from userid 1000) id 189CF3A0AB5; Tue, 11 Jan 2022 10:59:02 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 11 Jan 2022 10:58:18 +0100 Message-Id: <20220111095830.31542-16-anton@khirnov.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220111095830.31542-1-anton@khirnov.net> References: <20220111095830.31542-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 16/28] ffmpeg: do not log to the muxer context X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: ThTVoNB/xnRx All other logging goes to NULL context. --- fftools/ffmpeg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 2637b25526..6c774e9615 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2954,7 +2954,6 @@ static void init_encoder_time_base(OutputStream *ost, AVRational default_time_ba { InputStream *ist = get_input_stream(ost); AVCodecContext *enc_ctx = ost->enc_ctx; - AVFormatContext *oc; if (ost->enc_timebase.num > 0) { enc_ctx->time_base = ost->enc_timebase; @@ -2967,8 +2966,9 @@ static void init_encoder_time_base(OutputStream *ost, AVRational default_time_ba return; } - oc = output_files[ost->file_index]->ctx; - av_log(oc, AV_LOG_WARNING, "Input stream data not available, using default time base\n"); + av_log(NULL, AV_LOG_WARNING, + "Input stream data for output stream #%d:%d not available, " + "using default time base\n", ost->file_index, ost->index); } enc_ctx->time_base = default_time_base;