From patchwork Thu Nov 17 10:16:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 39311 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp997178pzb; Thu, 17 Nov 2022 02:17:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HetN++pGvXNa5HF9lJeITcTYhfHLiCVw5RqWQ8f1XtII4k/EJn2hp96wEGVIbunrMtO+l X-Received: by 2002:a05:6402:504:b0:461:5542:6884 with SMTP id m4-20020a056402050400b0046155426884mr1447670edv.390.1668680221718; Thu, 17 Nov 2022 02:17:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668680221; cv=none; d=google.com; s=arc-20160816; b=0We8BKrQQ9jT01OdOEr2v8keEFwUcTLe/M+vNMYRT2l0d0eKggJKc/oR1/R/Nn1ob/ GGGbXRDoJZ9pSLcLx9VUybKPnPwWR4AO0M/0rF32MJK+oUVOPbM4I2+F2wjyik/+7xXu ZWIuQgJgDArIv6AX1XDZSaN0yraURX2vwyi4OiAHirE4u4xwP+/zNiEPU/ayjySlSyip Xa01XpcITUoEE3EgyowwkyiGQh3b/3+rA5oJJrvqxy9hBsVhJYnXFe1Gm9TCLbAXnQOP Jf8HOjPsEE/DomL77Ht8eDF2NkT0E6DqQJwZl7oA6pPbRZuplKCLD+m1d2K7tNj+jLjQ b6yQ== 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=9mk5/CucabIQb/dF2sJGJlrJVC+ctevfTUfL3VDk32M=; b=KtaABxo4R96xjgc7Qov+VrnxQ2GwsSnHD2P+qb7qwK198NciIX1dj+JYO4275M/GN0 VO8BTRh6AqqlhrjZQBbuG9DGItpHT/FstPoBNg2QA2mtUm0fkUiEc2sVWPpJ+a0ha18N A/nwscEm38c3f2l9czsnzADaf1VehJC8jp2kUXF0NluiIuyjHrdc7OwZdNRnqWV7hhms KrNnLhQiZx/6tM+WkFq4gpWbz5dL8mrDwOcFYmGDylQFqfjYnZ6IhyQxO0+lbeZ3LTC0 gDRNyaiu2expglgaMFSItFB2w416cf7oIg3/gTtDPHFItHHuU/ztQVQMqmX6rL/yOCfh BJGQ== 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 q14-20020a056402248e00b0046184b7c4besi492345eda.462.2022.11.17.02.17.01; Thu, 17 Nov 2022 02:17:01 -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 9669F68BB60; Thu, 17 Nov 2022 12:16:52 +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 8251768BA62 for ; Thu, 17 Nov 2022 12:16:44 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 4B1EB240499 for ; Thu, 17 Nov 2022 11:16:44 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id aUPlq6ijqaFi for ; Thu, 17 Nov 2022 11:16:43 +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 49786240591 for ; Thu, 17 Nov 2022 11:16:43 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 0D0373A0520 for ; Thu, 17 Nov 2022 11:16:43 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Thu, 17 Nov 2022 11:16:33 +0100 Message-Id: <20221117101640.6789-3-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221117101640.6789-1-anton@khirnov.net> References: <20221117101640.6789-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 03/10] fftools/ffmpeg: stop inventing fake source information 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: /fjuvd+e1e+s This code was supposed to affect copying stream dispositions, but it does not achieve that after bd55552d69, since dispositions are set earlier. --- fftools/ffmpeg.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 2c4dc83f03..08fdd6e98f 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3170,21 +3170,6 @@ static int transcode_init(void) InputStream *ist; char error[1024] = {0}; - for (i = 0; i < nb_filtergraphs; i++) { - FilterGraph *fg = filtergraphs[i]; - for (j = 0; j < fg->nb_outputs; j++) { - OutputFilter *ofilter = fg->outputs[j]; - if (!ofilter->ost || ofilter->ost->source_index >= 0) - continue; - if (fg->nb_inputs != 1) - continue; - for (k = nb_input_streams-1; k >= 0 ; k--) - if (fg->inputs[0]->ist == input_streams[k]) - break; - ofilter->ost->source_index = k; - } - } - /* init framerate emulation */ for (i = 0; i < nb_input_files; i++) { InputFile *ifile = input_files[i];