Message ID | 20230715104611.17902-38-anton@khirnov.net |
---|---|
State | Accepted |
Commit | 8173623e39cc72866eaaac13538e160f226b0a23 |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6da1:b0:131:a7d0:bc6d with SMTP id gl33csp4240792pzb; Sat, 15 Jul 2023 03:51:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlFulHTE7uH51vYyK9Q7xDBojM440Ha9FIZplnfdLKOLypIXrzJx9Ial0h4r4NvxnZZlmRDa X-Received: by 2002:aa7:c9d6:0:b0:51e:4fa:14e9 with SMTP id i22-20020aa7c9d6000000b0051e04fa14e9mr6003280edt.29.1689418305282; Sat, 15 Jul 2023 03:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689418305; cv=none; d=google.com; s=arc-20160816; b=ybSL0GlCapewenDMj49AmQdzKEUdLHCYp0Jy8ptyKL+I0EHbOqlLJoen6H9w3krlXj 3Sly/ueywYhQcvM13zwkt/i2K9hEOrT4VErBJSqOBbHfSvKqT1PGt+AultC++1iIz3oh Bhkyba7KWfX/3SGW6e7l512aGaQtMpKhNF7EkOonn5tBwBd9fLnkTEWhRaG/XK+Id+83 00duujGrrdLkIf1DgQ4qwY5EG3LEX276u/WcNnH16zAVdCZA/Cietmq6fhJfgpX2cYAR eJ76rHHvNCiebEe6luqTsxMlQTWbd3NBaRhIq7A1PMniK4Y0d5wVJpXqgOVnvGnO1UAZ EgZQ== 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=44pArjn+8noHB8a+1MJhbGojDttIaRsjefb5E4Y5uk8=; fh=8ZF2QtiKOjBtyn9wuO2cMeZaLsE4aq02Bq77gGK61E8=; b=LP9KWjhVzrqUeyX+e0oAga21N/RJ8tpyUVlAacP/6/yVcsXtlQBWU/kp6sTxIznHcl I3hzoUP5S3kgs01oSIBSU4VGfqXdF626snV5MdWKoIhm3XXe6PaoTasD1MSeUdeVSf++ lgxiTuGxBX5eCqc5aDVKC7d6oBJUNdaOyOTLs69tUG/QtKbL2f7mVB4/PLsbKDoNggKS tYuTG4pU19LhFmdplwDekFD9LNd3u9txVkL32gFqlCLs7wlpy/VgNoqlFatKO6jJ0CHW L0ryw/gUI/+4X2R0PpTOSIXgZKGHnn6sqHQjxkj0yLfD8m5puwmFyy7fRbEaht3BAVSM 24Tw== 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: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id l10-20020a056402344a00b0051ff079876fsi4804434edc.621.2023.07.15.03.51.44; Sat, 15 Jul 2023 03:51:45 -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 AA7F068C78B; Sat, 15 Jul 2023 13:47:14 +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 ADC4368C6D5 for <ffmpeg-devel@ffmpeg.org>; Sat, 15 Jul 2023 13:46:49 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 72A412404EE for <ffmpeg-devel@ffmpeg.org>; Sat, 15 Jul 2023 12:46:49 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id BmELu7B-Zgsd for <ffmpeg-devel@ffmpeg.org>; Sat, 15 Jul 2023 12:46:43 +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 1A0D2240D29 for <ffmpeg-devel@ffmpeg.org>; Sat, 15 Jul 2023 12:46:27 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id B6D533A27D9 for <ffmpeg-devel@ffmpeg.org>; Sat, 15 Jul 2023 12:46:21 +0200 (CEST) From: Anton Khirnov <anton@khirnov.net> To: ffmpeg-devel@ffmpeg.org Date: Sat, 15 Jul 2023 12:46:02 +0200 Message-Id: <20230715104611.17902-38-anton@khirnov.net> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230715104611.17902-1-anton@khirnov.net> References: <20230715104611.17902-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 38/47] fftools/ffmpeg: consolidate exiting from main() on error X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: 1ZJ3at1JIZLB |
Series |
[FFmpeg-devel,01/47] fftools/ffmpeg_mux_init: handle pixel format endianness
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index b4ea52ac1d..0c5e553c72 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1339,17 +1339,19 @@ int main(int argc, char **argv) /* parse options and open all input/output files */ ret = ffmpeg_parse_options(argc, argv); if (ret < 0) - exit_program(1); + goto finish; if (nb_output_files <= 0 && nb_input_files == 0) { show_usage(); av_log(NULL, AV_LOG_WARNING, "Use -h to get full help or, even better, run 'man %s'\n", program_name); - exit_program(1); + ret = 1; + goto finish; } if (nb_output_files <= 0) { av_log(NULL, AV_LOG_FATAL, "At least one output file must be specified\n"); - exit_program(1); + ret = 1; + goto finish; } current_time = ti = get_benchmark_time_stamps(); @@ -1368,6 +1370,7 @@ int main(int argc, char **argv) ret = received_nb_signals ? 255 : err_rate_exceeded ? 69 : ret; +finish: exit_program(ret); return ret; }