From patchwork Sun May 19 02:49:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 49000 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:3a48:b0:1af:fc2d:ff5a with SMTP id zu8csp3719521pzb; Sat, 18 May 2024 19:49:58 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW8y4749ruD4UJJjJ8yNkYMkelEPmSSu7H+hMGyzp/K9WXeGVV4o5ww379aLQsnhKjm5qBLxCRL9GEzrMqp9Gvh8z/jJ7SScQK4/A== X-Google-Smtp-Source: AGHT+IEBuwsZwxIYjI/LNY+ZN/8pY6sgNDBHOONc6KVZ7pV/KGXXhsbGksRxtVRTIZXgbLP1UqAh X-Received: by 2002:a05:6402:695:b0:572:5796:85fb with SMTP id 4fb4d7f45d1cf-5734d6f57d3mr16214050a12.4.1716086998634; Sat, 18 May 2024 19:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716086998; cv=none; d=google.com; s=arc-20160816; b=P0OgxdxOvJZDZtV4eXgnNf5aoABD+o+WUvsluzsj0wT9RG/4DrGk1HOnsy7l/2M9YG cTIq7AN7f2pekh1D54MUntwZIn5vTeDWnPjFLKWoJBGyNVcTkATIyYCJBWE+i12Rg+Ez yKL4I3fZJR4aTjXi+d8vY3IETqIWHrdIdFUfR9L+gYQYf7Qus8Yp+3CCbobX5UMHvvsG ZQU+Wp2Vi/CZCCostwAu45VV+Zvje7kXfvS1ewf7UuR/jEd30X1ijaIl2oUMkquh7FtE Q7ixJE2jY0aYp5rlmKmNWh+j977ztCYockgSmqLFrzKtAWE5BuCu08AxzbRygv68fh6k gEpg== 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:dkim-signature:delivered-to; bh=RbGrFJ2wG7DrW65Wc1FTY2k/YGTp3R+biF62F49bl8g=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=wjdwBQD19vCJkSInMiF6+aJB8YccZnDKN7YjQjC4ToBXzt1NIl9a8zDtKgDc58oil7 6wvsLjkopU8r6PwHqsQyvW4XvHNRcEPQ60oQq4lgyK0ALq0cz1ACSDIZwduiNa/pJ4XA nEov+08OZeh0cP1PhnFtvQKtvlvtHdIpwHa9zHvjPwBeHSSvmefWPPGyK6zyGWS4ox0s A6phdEd3kXdcc15ZAStPWEr63eG2yAYPYpsWapX65IEWbuZTiJDowhVVyekZspvNVTes Q7O3vWmSe17+6ux7ep5+CR2nk9Jawx7ol/izZwxnMJxBPlci9GFOWviVRfHOg+3J6iSl 65rQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b=lMWcBcHT; 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 4fb4d7f45d1cf-5733bec1786si11238136a12.174.2024.05.18.19.49.58; Sat, 18 May 2024 19:49:58 -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; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b=lMWcBcHT; 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 519D068D239; Sun, 19 May 2024 05:49:29 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 501AD68D16C for ; Sun, 19 May 2024 05:49:21 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id A21D61C0002 for ; Sun, 19 May 2024 02:49:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1716086960; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wpGddyIEO5Ge2VdLgTSWj0MAmZsHj3omPhRmrMaK/3w=; b=lMWcBcHTQr/ZSo9bF1JPlDUnE4Kmgql4NJzhUnx/0v/MpUQbv9+hhj44TsB7MW5DXcJGJ/ 0wps4pFgkWUriZ1C+lPWrAURQd3HHwb1+wF3QPnoigHVhd18pWACMrUTA3+K2cuFaYyM9X 7kko1LA3K0k7mjec9UDWaXoCQgpVvcPrUnnZ2JCU1grL4x7VXo+XYVe/fH6DEgTF4GyOW0 vwaHmhSOHEAYNQ2yg/LxuQBoSG1/nKXmXiKRDsU10f7vDjZ6U//lYQKgQUUJ6C6PvsBbDs ReJIdFHQuNDn/7Nw4Z5h+sV8ULQcnn1MPXVf5O/Io8JmrgjSDvSfb7h2ofhkiA== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 19 May 2024 04:49:10 +0200 Message-ID: <20240519024915.1944150-4-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240519024915.1944150-1-michael@niedermayer.cc> References: <20240519024915.1944150-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 4/9] avcodec/vvc/ctu: Remove dead ret check 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: QuvE7iVlTz3I Fixes: CID1560040 Logically dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/vvc/ctu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/vvc/ctu.c b/libavcodec/vvc/ctu.c index b7089b9a004..89eb9d338c7 100644 --- a/libavcodec/vvc/ctu.c +++ b/libavcodec/vvc/ctu.c @@ -1854,8 +1854,6 @@ static int hls_coding_unit(VVCLocalContext *lc, int x0, int y0, int cb_width, in cu->lfnst_idx = lfnst_idx_decode(lc); cu->mts_idx = mts_idx_decode(lc); set_qp_c(lc); - if (ret < 0) - return ret; } else { ret = skipped_transform_tree_unit(lc); if (ret < 0)