From patchwork Sat Jul 15 10:45:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 42710 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6da1:b0:131:a7d0:bc6d with SMTP id gl33csp4239901pzb; Sat, 15 Jul 2023 03:49:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlF6TrCWAfm3fdSRWjNcEJbPihYUg53Pye+xIQiwdstXrp8Gx9zHpXsfQ5f5RzDTr8hLL1X8 X-Received: by 2002:a17:906:104e:b0:988:fb2f:274e with SMTP id j14-20020a170906104e00b00988fb2f274emr6849471ejj.27.1689418165566; Sat, 15 Jul 2023 03:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689418165; cv=none; d=google.com; s=arc-20160816; b=NNLCvZhEaOP2o9Y58o51p0+4x0fhxgQrHr5uuUqczJYMftjzGMZUTdB3hQAjUSmxuZ nO50n7jkGat4hsjWPlZAwmosch2Iw152HGc8bSvClfwPKO8/7QZvP2yBixRzK5LNcuTK TOJF09KNgJlHKAm+cT5VFR3l7yXNaiUACMh9zSij0R3WTYrxN3m6I44Zohd6X+y5o5Oc UNywdSqw0U9YboFb0/E5Wz/7hOmysoOliwIukzg+YZsEJJ6ecAxAmqqu8+gY5viSno4P vyGoONlk0cdfvqkkhJSprhSfJViBz9rhflrQW/XvtXZzH2zzFNKqjZjpRwT4kAlg+BEa 35Ug== 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=OeZI8lXKkaI3kUJvJn7W+2VQDhAp7aoUnfprE5rcIgg=; fh=8ZF2QtiKOjBtyn9wuO2cMeZaLsE4aq02Bq77gGK61E8=; b=hZM4k9yO8XSt4vDnKL+H+AVrV+dBIu2YE1RiPJXQBRlnEw1mXEjclw0JCRJvA1TDgh R1bRnfgXHXb3BchwlgvD1RQb6zVu+BrCd9KqcdTH/kchomqjA3y6hxc5V3xPxwWm9u9x elwRe5i9VDi6EIjsRhRKoPiYktPlDseqfBZsfJeZqYT9cbJHkKbgTSBVCEgN1U2+rteF cQ8bNqjytGSi/m/J6Ao7hePZSIrmpfwDaF3jiEy0OjP0CZGHQHZ5r0kSEmev8D6P6jbs zP05jxpsJQ3Pltgc+faYYYibqZzfP4PWTzcfzPB3eFQCVnGROTJRV/L12H4/Y6ohPBsN 1Mjg== 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 a6-20020a1709062b0600b0098885a739f2si2224253ejg.657.2023.07.15.03.49.24; Sat, 15 Jul 2023 03:49:25 -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 CBA4268C70F; Sat, 15 Jul 2023 13:46:54 +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 1347768C67A for ; Sat, 15 Jul 2023 13:46:40 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id BE7072404EA for ; Sat, 15 Jul 2023 12:46:39 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id vyLsXfpPtGEy for ; Sat, 15 Jul 2023 12:46:39 +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 01864240D1E for ; 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 A045A3A1711 for ; Sat, 15 Jul 2023 12:46:20 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Sat, 15 Jul 2023 12:45:39 +0200 Message-Id: <20230715104611.17902-15-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 15/47] fftools/ffmpeg_dec: drop redundant handling of AVERROR_EXPERIMENTAL 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: 7s/Yd2pVf47Z Normal error handling does the job just as well. --- fftools/ffmpeg_dec.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fftools/ffmpeg_dec.c b/fftools/ffmpeg_dec.c index f5f764b6fa..62c1baf287 100644 --- a/fftools/ffmpeg_dec.c +++ b/fftools/ffmpeg_dec.c @@ -1115,9 +1115,6 @@ int dec_open(InputStream *ist) } if ((ret = avcodec_open2(ist->dec_ctx, codec, &ist->decoder_opts)) < 0) { - if (ret == AVERROR_EXPERIMENTAL) - exit_program(1); - av_log(ist, AV_LOG_ERROR, "Error while opening decoder: %s\n", av_err2str(ret)); return ret;