From patchwork Tue Oct 18 12:36:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38791 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4a86:b0:9d:28a3:170e with SMTP id fn6csp2083410pzb; Tue, 18 Oct 2022 05:40:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ktD/UTv5NkCS0wpXfPCszO49YIsoIiwxEVSJ2WUAclfrdHT/oxA8C5p6l39N4Y/VaRNpk X-Received: by 2002:a05:6402:538a:b0:457:b602:d5a6 with SMTP id ew10-20020a056402538a00b00457b602d5a6mr2435478edb.371.1666096819303; Tue, 18 Oct 2022 05:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666096819; cv=none; d=google.com; s=arc-20160816; b=mLzESDufhNMfVUtMR0Bi398JRalK/QNy8F6RdmEtAWQpVluuYGVRYZQou/E2mzQptA TbTOfVPoD7zHp4vmzaIkn/y8umxVo4wQVygI7X47L9wR5eaEfqxqxaBHH5blOAyobeLY lEjWoe1BKwyvYLRZbh7fPTuWaFKBPWTd+Qjtic1VkXB7itNSWVnKpu6KAIIngIqLoVI4 apBsU1uKaBm7g8ie6oScjFuAuXRMMQPxneskz43IFTrgt8SGwlPnP1uVxxGPmWxcuklp oa+gOKWO8kjMx7oUUt7K3z5wHjGapyIxUoR18NArVWuBtMfo13eWVyVJKqplmq1EH1MY 32Aw== 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=FuEJJBuRMa3gAdZ38LHvbEeUjZB7sOLTYPZMMmU6OpU=; b=dSHthvp7AL1xV7N0aCNe+hsWCNXINiJptfFcpKiQVs5ZP8R9F5TgBRAdkuIxhS81q4 L1FoV4ezfpfOrFePHgm7lhW7HqxG6ZwAUmMZvieN/oSEZgLAC2aW8xnghzwemUzDSFDY IiU6ZBLxoCkNQAjfKSrYpebyBXOQx9y+da1Cbecg8b7/lMQ7ZG7oOW4cgViJqyBBu1UI cX2irXCNpPPRanwTpN1Bxkqyilf05pxq5JI8LZlAS6YeCOQ3ncdYPUzKbIR/AmjPdZS+ QbpI4oeuVD6g1pXK7RQlkQZPDx/1xTdsCCNUc9tMg42qKJxQ5BlCE1wHedP1c6ZoFwSr R1Tg== 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 nc23-20020a1709071c1700b00779f8e7ec5bsi12438369ejc.42.2022.10.18.05.40.18; Tue, 18 Oct 2022 05:40:19 -0700 (PDT) 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 8974768BDAC; Tue, 18 Oct 2022 15:38:35 +0300 (EEST) 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 4C27E68BD1F for ; Tue, 18 Oct 2022 15:38:16 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id CACD92404F7 for ; Tue, 18 Oct 2022 14:38:15 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id z1ZBCt63Y3yk for ; Tue, 18 Oct 2022 14:38:15 +0200 (CEST) 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 A5B4C240591 for ; Tue, 18 Oct 2022 14:38:13 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id B70E43A17F4 for ; Tue, 18 Oct 2022 14:38:13 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 18 Oct 2022 14:36:49 +0200 Message-Id: <20221018123701.25002-8-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221018123701.25002-1-anton@khirnov.net> References: <20221018123701.25002-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 08/20] fftools/ffmpeg_demux: do not log to the demuxer 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: CZMI3lSTfoq/ Only the demuxer itself is supposed to do that. --- fftools/ffmpeg_demux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index fe1b3bd8b7..e5e7cd1a54 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -81,7 +81,7 @@ static void report_new_stream(InputFile *file, const AVPacket *pkt) if (pkt->stream_index < file->nb_streams_warn) return; - av_log(file->ctx, AV_LOG_WARNING, + av_log(NULL, AV_LOG_WARNING, "New %s stream %d:%d at pos:%"PRId64" and DTS:%ss\n", av_get_media_type_string(st->codecpar->codec_type), file->index, pkt->stream_index,