From patchwork Wed May 31 14:54:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 41916 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c51c:b0:10c:5e6f:955f with SMTP id gm28csp3327982pzb; Wed, 31 May 2023 07:56:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7cF+XTA/uMc/O68ehnKQE7mbktrr82DdFWqj8KtdwN7T03WxrRTnMmlBiSdxZko1spgRJU X-Received: by 2002:aa7:c04e:0:b0:514:a454:175b with SMTP id k14-20020aa7c04e000000b00514a454175bmr6080177edo.6.1685545002111; Wed, 31 May 2023 07:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685545002; cv=none; d=google.com; s=arc-20160816; b=QgTK5RVSW+LRdcwzHMheVyQQ3RRk+8hJl5Xb3HEoiSjzYxFqI2A6ObJEVEGnZZuth1 vih0SqbCFL23/pDk7wFRH/xTiXpYePOi/5C+Mh3OMcUWFs06vBPmz0ufaq98S5XX/6jh m/+4uujEv5lHa0d4YD6TV0FSE2mLyJTcTlSwXAC6X9uAu+zpP7Wb9iXcd1P50vmVEhnx t3MN8dD+IhWjVF38rbaIUYhAa9ub1FKKjU7DBesx7TYsNvAKzES7MA24WOjOPdkD8Bzy KyroKrgpoMkyldcgq7X8D0Bx5xkn/CbZXmA/Ge7f95rlSiwJ7wb1pZX0Pcz+xmFwUPgx kJTQ== 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=4UHqIsaWikfmlhvP1AZT85MEQdzgZtUKFYhbzs5fMLg=; b=iTxgJOq87Cwh2RJImBhwEWAV7FaxODcEFA0eRoteLma1bndBbUamPa9jZNgahQ4Wes TfPCMKMQLBoRGKiVNUFcWwbyh9hRJcO3FqIXJzq9UfUmOpw4U7WsdI0qSIqwf5iPhOQj nDCqODXGxG2aXNu7eCm/lvhkibciinacIal9GGj5uK8paILGkEwJvBJ3PN1aYA8HIs8V JI8RJAJWRhelVC9QzUqS8uHjaFhYpgdLTgOOWs1jySaC6yRCIyGKaZWf22UT4iGiS5+g lhPU8WfD7CoEXPX2Hm0fXTy3LCxr1LrIrPUxJS+vr4C8Sv5h9XqQ+dpUjwaz75Xp4oi3 eIvA== 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 y18-20020aa7d512000000b0050bc94fe05csi3516955edq.117.2023.05.31.07.56.41; Wed, 31 May 2023 07:56:42 -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 4226168C2D6; Wed, 31 May 2023 17:55:23 +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 5817B68C253 for ; Wed, 31 May 2023 17:55:13 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 5DAD82406D0 for ; Wed, 31 May 2023 16:55:11 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 1ECFoSFIDl-8 for ; Wed, 31 May 2023 16:55:10 +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 0CD06240705 for ; Wed, 31 May 2023 16:55:06 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id A44593A0D13 for ; Wed, 31 May 2023 16:55:00 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 31 May 2023 16:54:49 +0200 Message-Id: <20230531145453.20994-19-anton@khirnov.net> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230531145453.20994-1-anton@khirnov.net> References: <20230531145453.20994-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 19/23] fftools/ffmpeg: stop explicitly closing output streams on input EOF 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: mauyAONDMc38 Sending an empty packet already does that implicitly. --- fftools/ffmpeg.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 7d2a25f2bf..462365ed02 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1104,7 +1104,6 @@ static int process_input(int file_index) for (int oidx = 0; oidx < ist->nb_outputs; oidx++) { OutputStream *ost = ist->outputs[oidx]; OutputFile *of = output_files[ost->file_index]; - close_output_stream(ost); of_output_packet(of, ost->pkt, ost, 1); } }