From patchwork Sun Apr 9 14:08:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 41048 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4645:b0:e3:3194:9d20 with SMTP id eb5csp1590907pzb; Sun, 9 Apr 2023 07:09:54 -0700 (PDT) X-Google-Smtp-Source: AKy350YtiVWZYJOBww7cSs5VQKdvHSD2soTOaBdtsHPCFm/bSPX6E0PiDRIyp15g73m4a7oFnnIb X-Received: by 2002:aa7:d3d0:0:b0:4fb:f2db:a654 with SMTP id o16-20020aa7d3d0000000b004fbf2dba654mr6978973edr.12.1681049394295; Sun, 09 Apr 2023 07:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681049394; cv=none; d=google.com; s=arc-20160816; b=VUnxIKL1M4KjgWKXvo0iszSMcgNKR8tWB430at04TySgB+ZIYbeUh3zRf3Vul9xD+2 nTajniye7rhS2WJmp0et3USpq+mH5Uny+DkVoDUX3fLTp6oCSPTEdgbjxn6snNmyR9j7 gP5fi72wgHJPx6VDfc92Kz1DUj5SQHOLkKRkDMpdKTgTHmL9B0vdQ8k6xevSDuGO568F sTo9BEcxxq3u/UEk3qrXfADxE9Q7Y1s6ZcKpIKKl6clsvjB+ZbV/HVO3Lou0YTejg4+1 +9WUzmvAr5SYZ33/kka4vM0YlHg7YHSjZnRi+VkITB4R9LWar8BlLfeT4cgkIgpsJ+wi aPaQ== 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=tqu+b4HeMX0MsNWwClew60NS1LSYU3QsxrsX5lfPFR4=; b=IJE5TD/gayQCQsQbUpirZG+oAoLjD5dxnIb3J0XHgzEzCsvNsO053Mt5ONdvmnsvdk ok7dIlRv5T0IEZiM/HDaVQZdxmBfGqVKGZxyt2uTh6XukpGZKtWik6d0CsQvC8KAtq63 aQPL0Ilz91fk/GAOXeF9h/6l0HbSr3x0EOrA5d3YB2MKUsJdwqpFM7drLEnHXywyJQ3y 34NUYm5clCc2Q97V3NOftn8vdUWzzsTYyrWBi3LNxOmPEN7in5eW52iZ7E0KxPk74SS8 KSQ5s1sTcTl3l+iQc2pAOUXus7zvGLCIp1SCUEbHkSJkvRTP4ydNGjkF00BYxt7WuGV+ KyYA== 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 t7-20020a05640203c700b004c1190b5abbsi7353174edw.184.2023.04.09.07.09.54; Sun, 09 Apr 2023 07:09:54 -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 E103768BD68; Sun, 9 Apr 2023 17:09:21 +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 B8C7368BBCC for ; Sun, 9 Apr 2023 17:09:12 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 7C1212404F5 for ; Sun, 9 Apr 2023 16:09:12 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id yMutnp98Bz-W for ; Sun, 9 Apr 2023 16:09:12 +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 25F99240591 for ; Sun, 9 Apr 2023 16:09:10 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id F31FF3A0567 for ; Sun, 9 Apr 2023 16:09:09 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Sun, 9 Apr 2023 16:08:30 +0200 Message-Id: <20230409140853.28858-6-anton@khirnov.net> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230409140853.28858-1-anton@khirnov.net> References: <20230409140853.28858-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 06/29] fftools/ffmpeg_enc: replace abort() with av_assert0(0) 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: 0usZSizjBzKA This is consistent with the treatment of other unreachable paths. --- fftools/ffmpeg_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index 7f6bd76f10..2aaef806f6 100644 --- a/fftools/ffmpeg_enc.c +++ b/fftools/ffmpeg_enc.c @@ -306,7 +306,7 @@ int enc_open(OutputStream *ost, AVFrame *frame) break; default: - abort(); + av_assert0(0); break; }