From patchwork Tue May 23 13:58:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 41798 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c51c:b0:10c:5e6f:955f with SMTP id gm28csp600524pzb; Tue, 23 May 2023 06:59:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ41sPDCdzS0o/g50sgcoRRjRFz0o0HLbPWLaL5NLNIPZtQ0468aTk5wstyfeXxb9vtg9yv9 X-Received: by 2002:a17:906:9b8b:b0:961:be96:b0e6 with SMTP id dd11-20020a1709069b8b00b00961be96b0e6mr14582438ejc.68.1684850394799; Tue, 23 May 2023 06:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684850394; cv=none; d=google.com; s=arc-20160816; b=VeAMpunXo7Rvax8r1SC/RRt3CTTQ5tck1J2K8ojtFu97CubwKVfqAkMgoXUS6T1UaE izKY++PFmxILYwmSDeVmAtf5NnLVbARzfHELo83wg+BsJ1jfFptvG9JeIDXZa1yL5g4i XJ5UKD5vh9aJmNn1UdQ72U9ZcmMMWQiCGeoVcu9q2MYORDsn7b8rgFaouDbdpJ8gtTVR 1bfTPNFdH85epedD5qpYtjLVhiBTmFFXYC2WwhZwZM6N8SojuYktzfBrlrHvcoI+NXXO NhxVYa9+ro+v3V7AzTNFrINOOK8/ILprCNeNr7xMmS0aiLFY3/ZqqjHzxKVTOVin/XP2 59Ng== 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=usnkNXVpk2Z8CQ2pbTWF5rZ3mkcU+1hx+49fkyz4XyY=; b=YmlvK2Ysc/mmxCXzPP4heTTLrCLuBkgaJzLS/x9JysFaX6URMnxafjoVW+sdXmBY0E G3TtpPfIf3cxdOiMHhSsMxhb61u++UtJgqVJwXhUaiy24NY55okfgKW9vbgdjaQ+6/na 7nibPqNfnYlvXcbVqFDIeNgNRMZk2CTrhh8bm/Qiliu4KRKPMcKWtDbMLsZXf8JnPz0H PiseeKtPqGyMKVGm2o1m0eDE2kAf3tM7FRZ5bIEzUX/gOMgI89VXBbtHmS2yFt8HIEXs ZFJrje4gU4uxBB37xkcFvw0w03Q8ndYdFqEEZHcW4Mv+4Es7JlaF/qt5NDAqowpIJBaN Hbqw== 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 my2-20020a1709065a4200b0094f3b83a4bfsi774319ejc.177.2023.05.23.06.59.54; Tue, 23 May 2023 06:59:54 -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 6903B68C105; Tue, 23 May 2023 16:59:08 +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 BF73068C0BF for ; Tue, 23 May 2023 16:58:59 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 4A35D2404F5 for ; Tue, 23 May 2023 15:58:51 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id Zun1zoHD8DMF for ; Tue, 23 May 2023 15:58:50 +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 755942404F8 for ; Tue, 23 May 2023 15:58:48 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 66AD63A1506 for ; Tue, 23 May 2023 15:58:48 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 23 May 2023 15:58:34 +0200 Message-Id: <20230523135842.20388-7-anton@khirnov.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230523135842.20388-1-anton@khirnov.net> References: <20230523135842.20388-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 07/15] fftools/ffmpeg_demux: initialize nb_streams_warn 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: gK0DUSv66R22 Fixes spurious new-stream warnings for unused streams after 9429624a76107020b5911f8307f366fed386b336 --- fftools/ffmpeg_demux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index ed8d5d165a..bd267aa0ce 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -1543,6 +1543,7 @@ int ifile_open(const OptionsContext *o, const char *filename) d->loop = o->loop; d->duration = 0; d->time_base = (AVRational){ 1, 1 }; + d->nb_streams_warn = ic->nb_streams; f->format_nots = !!(ic->iformat->flags & AVFMT_NOTIMESTAMPS);