From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id D492647CD9 for ; Mon, 15 Jul 2024 12:56:03 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4D5C568D9D2; Mon, 15 Jul 2024 15:56:00 +0300 (EEST) Received: from malbec.omniscient.com (malbec.omniscient.com [38.70.18.20]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7D7C068D8D8 for ; Mon, 15 Jul 2024 15:55:53 +0300 (EEST) Received: from triton.parabon.com (vzw-53.parabon.com [96.255.5.253]) (authenticated bits=0) by malbec.omniscient.com (8.18.1/8.18.1) with ESMTPSA id 46FCtmH7073724 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 15 Jul 2024 08:55:48 -0400 (EDT) (envelope-from dabe@dabe.com) X-Authentication-Warning: malbec.omniscient.com: Host vzw-53.parabon.com [96.255.5.253] claimed to be triton.parabon.com From: "Dabrien 'Dabe' Murphy" To: ffmpeg-devel@ffmpeg.org References: <20240712232334.87395-1-dabe@dabe.com> Message-ID: Date: Mon, 15 Jul 2024 08:55:46 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 MIME-Version: 1.0 In-Reply-To: <20240712232334.87395-1-dabe@dabe.com> Content-Language: en-US X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [FFmpeg-devel] [PATCH 0/1] Make "File exists" exit w/ non-zero status 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 Cc: Dabrien 'Dabe' Murphy Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: I'm not sure if it was by design or just an oversight, but it seems "unexpected" that ffmpeg (without `-y`) to an existing file calls `exit(0)`, even though it prints a "fatal" error... The attached patch itself is trivial, but like I say, maybe there was a reason for the current behavior that I'm just not aware of. Cheers! dabe (1): fftools/ffmpeg_opt: Exit with non-zero status when destination exists fftools/ffmpeg_opt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.45.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".