From patchwork Fri Jan 5 16:42:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 45488 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:1093:b0:199:52ba:a72d with SMTP id w19csp212831pze; Fri, 5 Jan 2024 08:43:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMVonhB0UHUcazNOapqeaBtjsPHlMX5wi0j1Mcu1QdsTVEcicHNFOyT7+LQkCHdTBUoHoW X-Received: by 2002:aa7:dd0b:0:b0:554:4aff:6559 with SMTP id i11-20020aa7dd0b000000b005544aff6559mr1455321edv.29.1704472989296; Fri, 05 Jan 2024 08:43:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704472989; cv=none; d=google.com; s=arc-20160816; b=0fuTE8qcBVwsgfXvlT6TsDNYZb3kd45ZQ5K43G2oqrKddmiDO9vvbQxXzPsur/ENpX QDp/siLJtIsftsKOAkfyKXGrXrhJEftVu/dzcy7+8NeK0e4cbv0bI36ccxvmQpzeU/m5 YlOHAjW+f2sBAnC0T/286IVNLp26rPY0qYbLbn5wQD+G6HQE7BBJPjx9nHMkHO9V6Y0l trqkqj/sO4u8tS7Zhb5Mb/sMbpHWmQhL13+51acZcNle1aZyvnKAhAa8Q6nVkce4H0tX n512xKZsf8xyTHLyT5RPBYEbGOSco/P1SlIf6WT9AgjwTOGeb3Q/s97l8q6fn6TqpD8p XECA== 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:message-id:date:to:from :dkim-signature:delivered-to; bh=2YpufIO5pRg9azAHOHgE6trfIYXrjsSwAEZMS1y7kU0=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=ezKn+g0Vcg+0h6HeAh3hFTvcjV/3QxqKgqCXLYSoA4g8Gd7Ua1Vj69OsRvutvmdtqR BrqMHUdtWZYLL76GNpPEVFyMJEMGN5cWkotL8inW71T4VVqL1QVwct5o9x9xccqAdktn c6qk+2cRpS4TlIa5iVzrHI0JvcWARXKNL6l/59jhGs83QXf9d3kqAAK4L0c+S0LGNt/B h0qcizbo/CPRPbQWOWGi6+FiJKq6LVNfpoIINaQOP4myAGg5WHpEORR+BlJ04oOYPzl7 CPU2f+TFxFyMGQXJdyYN6K3f9mWPbcvxZTZqdWHo05yI+7HpB3hq4aLzi5h0n2shOY8d IvtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b="o/3NXv+P"; 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 y41-20020a50bb2c000000b00554f8c5b037si751620ede.13.2024.01.05.08.43.08; Fri, 05 Jan 2024 08:43:09 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b="o/3NXv+P"; 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 E9A9B68CD40; Fri, 5 Jan 2024 18:43:04 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5525868B4D7 for ; Fri, 5 Jan 2024 18:42:55 +0200 (EET) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=o/3NXv+P; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id C703419BE for ; Fri, 5 Jan 2024 17:42:54 +0100 (CET) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id uy5S2763lTEl for ; Fri, 5 Jan 2024 17:42:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1704472973; bh=+nO90obbWXUZLPqSK5Em8tSgtdnpghhj/PgBih2x0dg=; h=From:To:Subject:Date:From; b=o/3NXv+PXkjIMFHYGG6qxdjAPXupzl9Cp+2JM0plXa6BVVkDCLJmeJhjDcfiMKL04 7dHKJl8LS5Yz1i+CTKVHQiSIl0Ol8u9rWHnmim4EXunbEvbTsvUqS9MfAjpp9BoqHb eviJnTxP2OBbZPRhpfUVVnXooDBF3EA32hV0Y+fXUs76UTmOka8R0gp+0YUWYhoWh/ Ae26eM0FcP97sjgs7SzPg20kWg3/lCKAJfBAj7/KIGuhdTIsjjQ/QPXRGAfz7VBzO+ wCok+rYIYPU8kZ2PPw5R8FVQF4Gfx6FAP2X6ql5pFZVfL7gFma1pBILhTZQz4iQS8s NBEU/XBSLI/+w== 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 mail1.khirnov.net (Postfix) with ESMTPS id BE1A913BB for ; Fri, 5 Jan 2024 17:42:53 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 489353A0534 for ; Fri, 5 Jan 2024 17:42:53 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Fri, 5 Jan 2024 17:42:44 +0100 Message-ID: <20240105164251.28935-1-anton@khirnov.net> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/8] fftools/ffmpeg_demux: replace abort() by 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: rHldq6aG5a8X This is the standard way to mark unreachable cases in a switch --- fftools/ffmpeg_demux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index 95af31e9ef..5d07b7153d 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -1223,8 +1223,7 @@ static int ist_add(const OptionsContext *o, Demuxer *d, AVStream *st) case AVMEDIA_TYPE_ATTACHMENT: case AVMEDIA_TYPE_UNKNOWN: break; - default: - abort(); + default: av_assert0(0); } ist->par = avcodec_parameters_alloc();