From patchwork Sun Dec 3 20:16:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?2LnZhNuMINiz2KfaqduM?= <3alisaki@gmail.com> X-Patchwork-Id: 44892 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a301:b0:181:818d:5e7f with SMTP id x1csp2393299pzk; Sun, 3 Dec 2023 12:16:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCo+QGeFS4eHgmt0LutB3m0mETNN5FqCIAbIeScgM+nmodoVjqs8axxTVa/sRVHR44kNoM X-Received: by 2002:a2e:3314:0:b0:2ca:cb:36af with SMTP id d20-20020a2e3314000000b002ca00cb36afmr338392ljc.90.1701634607351; Sun, 03 Dec 2023 12:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701634607; cv=none; d=google.com; s=arc-20160816; b=ToLdlQOGRAx7nN99X06fkYLfKx8g/7i9NvRJGtWMy7iSqeXx6Umada3PPFMMkBJ+fT wc9jkwCxoSOudfrVBgzd8WKP3a3RbGx53B+g8p4vcYvwnNliMNEAG54iRV7WQC7hSsMc crO3FHEtOzJS6r0feH4kvZVX5mPYP1/C+1zOeVu5mQYvinNlXeMOBpwowr8C1HUENXut A8Xiq8S1W/z8Eou5XKznxZJZg8Zp+piQfkzSFdI0Kq6EjWJ5nhYLO711t9fKsrga4q6i OM4nLqJ0kanRua0tOP4niqqqciIWXkc9eH1QYCVCQNuLHne6Zmo7YKgU+EUcaw/uT224 k4yA== 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:content-language:to:from:user-agent:mime-version :date:message-id:dkim-signature:delivered-to; bh=KYa9GV9HyKHQ2us9c4SSt+IC1OJliWVhPRJtvMS2c/s=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=TGFYLBrZMxY2TPVfeq4M8uo5LNXzZBBwM2j570YqHJLdM40V2FbFv03a8CmvATZiz5 vZNUr/+zGfgy10Una5N+9kZsLdxBZlwlfu/SeDofcCdmReJ+fQ56ZKLUM65jXPZEjvVk sX2XFnbjBorPfCt/BYuwftgswQTRDg/bog9BPdJYHJEO4ZrU3yv9DzHGhl8GMjER9FcO 2AS9mPllU5VoQG3AhX132akxZwFr0hXa+mU6PQonEx9+X8xQj1ioAISK/ZatjnAfXVmE VpYYGmDGp0LfIfEKrrfgfcKdOV4P3qS86BOiakULBr843VsJgmmPHhgNNOflxpPaAFTv Z8Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=Zi76CrX0; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id j26-20020a1709064b5a00b009a5806bf5d7si3715917ejv.609.2023.12.03.12.16.46; Sun, 03 Dec 2023 12:16:47 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=Zi76CrX0; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4A30568CC28; Sun, 3 Dec 2023 22:16:44 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 79C1868C9D3 for ; Sun, 3 Dec 2023 22:16:37 +0200 (EET) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-33330a5617fso1972021f8f.2 for ; Sun, 03 Dec 2023 12:16:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701634596; x=1702239396; darn=ffmpeg.org; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=E+qjlwPvvqSEKBzn5Cw3DMAa1H9Dmny7OaU+pYJVBRE=; b=Zi76CrX0dRSVyIFDIlrEtLUa7Wj9Q8fscHOTY2Ch6b8uAZqjK/6e8GKEl+hJYRr404 Slwbk+n/qWk7bewJ9+SMnMl93v0xLFlSILOIlrN4EsBgWVI+zqSbrUqEfRNSPv66Pgme jrxBHdkwWb7OcdoGOt0qoli2IcZ4BPL2zQhnIqJNtlf6p55+YiJn7rKVazTdgZq/KE7b nwZ8faQ8FQYDVR8PSWwB1sGFnWLJ7wcSqio9imXzrHzDD+GoySlHWPNpRdrIrap7ijn5 RTPSMTidFO9as/3pXxEYytMhwmrRcLyMITibhGBXqfqD0gXGJ0lo2+Fg2wj3R8CzsNAc irNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701634596; x=1702239396; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=E+qjlwPvvqSEKBzn5Cw3DMAa1H9Dmny7OaU+pYJVBRE=; b=kDvk5gclqOpUEFqaGtJmwBUmI4Gex9qo/yp9q8vdClYIKY4Isarw+k445B7kDoWCdf fy+MRUuuUoxnyl3Dr8yCVk/yWV672kSP94WE89CxD5VkX7ndoRSLqxGtPhXp8ul7qRm2 dAKESXMuum+7Sw7vuA2Qc1L1ZCpi785IvDxj0X/EDsJYqQkwad15EFV2cN3dyvjiVWx9 oud/YHBdVifkSfvF5ZHlqeKmtd+/4K2+JQeXttjhLha1yE0nmeM7f+Xb6t7qy3d1UcKY ZKrIY3rb78gdDncvzsy4O7Cqhhcgz6m6qTgdwbRWWh8eC6iXm3wuwkqGA98i9O0YIHtx vEZg== X-Gm-Message-State: AOJu0YzxVZmOnQJLIg5siUR4FNj0W9QKiQcddkoIgMoWXSTuhPc98Vc+ 7DwX/PqAsSymuSZKVlMMN9XzfUCNMKF6tRYPoZU= X-Received: by 2002:a5d:64a6:0:b0:333:46e9:c0cc with SMTP id m6-20020a5d64a6000000b0033346e9c0ccmr954411wrp.95.1701634595745; Sun, 03 Dec 2023 12:16:35 -0800 (PST) Received: from [192.168.1.10] ([86.57.21.103]) by smtp.gmail.com with ESMTPSA id v15-20020a5d4a4f000000b0033328f47c83sm8958323wrs.2.2023.12.03.12.16.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Dec 2023 12:16:35 -0800 (PST) Message-ID: <102c9967-d9ec-4660-8f13-24031a5c0e0e@gmail.com> Date: Sun, 3 Dec 2023 23:46:32 +0330 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: =?utf-8?b?2LnZhNuMINiz2KfaqduM?= <3alisaki@gmail.com> To: ffmpeg-devel@ffmpeg.org Content-Language: en-US Subject: [FFmpeg-devel] [PATCH] Allow using stdin_interaction with pipe's 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: HNnfIwKZEGKN Signed-off-by: Ali Saki <3alisaki@gmail.com> --- 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 791952f120..00d7747c3c 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -1379,7 +1379,7 @@ int ifile_open(const OptionsContext *o, const char *filename) if (!strcmp(filename, "-")) filename = "fd:"; - stdin_interaction &= strncmp(filename, "pipe:", 5) && + stdin_interaction &= strcmp(filename, "pipe:0") && strcmp(filename, "fd:") && strcmp(filename, "/dev/stdin"); -- 2.32.0.windows.1