From patchwork Thu May 2 00:41:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 48462 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f91:b0:1af:7bf4:b644 with SMTP id mm17csp80259pzb; Wed, 1 May 2024 17:42:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWuHB2eQV1kKMQmqUbdz/hMZUPmS7p2vbm8Irf1YFkXq05OIoK/kvJnmhP10OY5zRAzuygrcsNSieNraJUvzyDf5q/+uDyJnSAQsg== X-Google-Smtp-Source: AGHT+IFmWClYtJ6QpSMrRM8CZ1mwfLd9osKMW+cbzolsmhq2XGiWfmz60Lexngx1jD5mn97Exo89 X-Received: by 2002:a05:6402:381b:b0:572:4fbe:d3f6 with SMTP id es27-20020a056402381b00b005724fbed3f6mr2824791edb.2.1714610551151; Wed, 01 May 2024 17:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714610551; cv=none; d=google.com; s=arc-20160816; b=UUaMOtoJN2bjlGVDtWEia4uCT0K49ceYNzbMKs31GliA6JTS+KpFZH255xvvsB2YQs U/PxYConpRDuNGCyewovwC6mgBOz/ydcJUpkJYoSZCt3jsZ0lrE4N4rOrSQk1L7IQbgz d5MKnIZgzhKYLCQ//5iJ3ApD7aHkZutcK717fWpfFz1/5NfYF3z8Xvg6eYLEGESQZdg2 oBYAQ5ZCun1nBsk59k0L3B/Kv+4SYbUPYm4EKcHfGve7qqH/gbX2Kvi0cOF/qcM9TdM/ IHxOwCzi9ZepeqTOqMvzXiB2I4uWXVYox2rvLRcmiYylFwwuuzox0ngMljJMOljzW4F8 18mA== 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=4E3xCjiLRzKum3kR98fpXGpc2ArSsS6uCUa2a/Qg7bw=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=keoqJaoYKuWlkRVeVMcPDPPt3h7Z+GU93w40XyZRZH9vy0lFe9dYD9In97iSaENofe kGAibpfJfj+tnhTlQd53Qfd9i10t5gMgFzGBorGcIuKw6R7df+mTztC9nHiE3Zk/BsqS RKVckwOsLYvgXrnAYK9YqgQCxhT1C1rjDUuK1k9CFLJXSsgEJ/qHzw9gno7Dtv84hRXY m58oktSUc412KZBJKeGJmXUh0/wQiWE3cGfhaEZ1yaPa8yvl0MPfnKDrhXlCEAjNNivp wbt67oWYfUJwVDXJhhUyCofokksPwh8qarvzHXV/xgH+cytqlli3oJWM9JWLgqYk7vMa Y5sQ==; 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=da0S1w6I; 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 m16-20020a509310000000b005705b381c71si17514933eda.395.2024.05.01.17.42.26; Wed, 01 May 2024 17:42:31 -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=da0S1w6I; 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 1ED0F68D771; Thu, 2 May 2024 03:42:02 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 86DDD68D766 for ; Thu, 2 May 2024 03:41:54 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id BFC8620004 for ; Thu, 2 May 2024 00:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1714610513; 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=wuhnhzH/5slE7A/rq0gS//Fz/xXoszJuF/wYdxhSfcs=; b=da0S1w6IaqT6c1v+Xo+1xJib6K8Gc/eIo5wmHDlZu6sYzHLE3i4w6sIbgBLSXscZAEUV8m 2g+XKt2+TeQQnmtZb2+8HZA1Y22Ok+qGg53o9lmQ9Q8vteAmz4Tc2EXXizjoF+FdJAAqVX eByESraiBPGPEesGH4Gtog6eRlZvdoWPTP1g5xz8Rq6rWcat6Kz5SsOkHNRC6S4RbTMVtv MoKbjeTNPD/hm1lnejOStOvCC5miBkzU9p0hLiMN24vwYUv/nbH6PqUujgqvtYo56QRGqp 8kaNvjoEvTojDjm/0Bv97VZG5TE/BYDISGnJCY85EY9bJL7TaLv0zs+d8Qbn2w== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 2 May 2024 02:41:46 +0200 Message-ID: <20240502004150.3627661-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240502004150.3627661-1-michael@niedermayer.cc> References: <20240502004150.3627661-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 3/7] avcodec/avfft: Remove dead code 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: 6DPXeSozo1+e Fixes: CID1543204 Logically dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/avfft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/avfft.c b/libavcodec/avfft.c index f6787937f67..0f43f30b776 100644 --- a/libavcodec/avfft.c +++ b/libavcodec/avfft.c @@ -158,7 +158,7 @@ RDFTContext *av_rdft_init(int nbits, enum RDFTransformType trans) return NULL; } - s->stride = (trans == DFT_C2R) ? sizeof(AVComplexFloat) : sizeof(float); + s->stride = sizeof(float); s->len = 1 << nbits; s->inv = trans == IDFT_C2R;