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 44B4B4BB9D for ; Mon, 15 Jul 2024 12:56:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8236568DA00; Mon, 15 Jul 2024 15:56:33 +0300 (EEST) Received: from malbec.omniscient.com (malbec.omniscient.com [38.70.18.20]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0E72468D8F6 for ; Mon, 15 Jul 2024 15:56:25 +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 46FCuNTt073754 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 15 Jul 2024 08:56:23 -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> <20240712232334.87395-2-dabe@dabe.com> Message-ID: Date: Mon, 15 Jul 2024 08:56:22 -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-2-dabe@dabe.com> Content-Language: en-US X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [FFmpeg-devel] [PATCH 1/1] fftools/ffmpeg_opt: Exit with non-zero status when destination exists 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: --- fftools/ffmpeg_opt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 2c201c74b2..dddf7c6475 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -604,13 +604,13 @@ int assert_file_overwrite(const char *filename) signal(SIGINT, SIG_DFL); if (!read_yesno()) { av_log(NULL, AV_LOG_FATAL, "Not overwriting - exiting\n"); - return AVERROR_EXIT; + return AVERROR(EEXIST); } term_init(); } else { av_log(NULL, AV_LOG_FATAL, "File '%s' already exists. Exiting.\n", filename); - return AVERROR_EXIT; + return AVERROR(EEXIST); } } } -- 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".