From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id D60234CF3E for ; Mon, 3 Nov 2025 20:39:32 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'xxjuqVKjaklHfCqRphJe4IJK3/UbDYTOwbCFPujCsWk=', expected b'0/KeKZBFRTT1eR9Ezmcj4KUSF+DKTE/U0bW0Rn0XgzI=')) header.d=carlh.net header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1762202365; h=date : to : message-id : mime-version : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=UGQ2NdglaFMwxbh3rCk9STayoKvEI96TZMy6Tjqk7eY=; b=HtPLekASfp6r2hmIANHCjY9T5qT/wNCDqde3LjnSqS/rpnvE+JzdtOCpjWBG4Yj/1nRcU SHdx17A/4IxAbUW85S7WXzALx7M7G8Eb5yDqMZjR/qzNIJU+p0lGuyTUsOFnYyTRctem3+R QnV2j7UUu9gxYwlPwv4ZHlN8+HixvlwtH1pQfYJwSxL4igx2FoZN0fu/8eUYHw891Hcz+D9 xuaIq+NP4OsL7SmHKXJAv/OkQBdHFLoTv3A7Z3o5v82HnjueNpJsfkq3mAUrUOaCx3K372q pKWzN3znTxmdtDbp8eGXmnCVpuRAisXqXDbQq7Apa3gbk8z4o3aoD+o52OGw== Received: from [172.19.0.2] (unknown [172.19.0.2]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id AFCFE68FAC5; Mon, 3 Nov 2025 22:39:25 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1762202353; b=JY8I5YYQhVrLYUG6pP5QRfDoqNYah8tCmTuE/aD49ScN+vLG5mXr/nVFicXMyEXi1tRTW ExBRGke+HEWCLshjX4Y2R+28MNKlgRAFaQgvebaXwMHku49b/tYLcDOHg2tpJDbN5bAU1m6 BKwgSaqZhV1i18AOIXz6sp399PPDA31VPO3PaAVn5TCpYn9JOAAZLrXGK18boZtpJUdcsRf B/ImEKzkuVWVtVsSknYeQMIOgGI06ZxfA7BbN7EsIh2PdUeCS71Yy1G771JZbGo5KNkbdXP ssurgENmhFqAzpNwjiOkiU47cvuu7ETTvQGRhSNZFnCxd3iUQvOcTDioHJrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1762202353; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=xxjuqVKjaklHfCqRphJe4IJK3/UbDYTOwbCFPujCsWk=; b=MLnHf7U2lGd02kp8cwi2tHupToFQ87XuuR1jjglh6a1J5t/GjxwdypbW8s0CiMwTFCoWe 2RgeSI0PB2ABhVKlJfE1aU+Q6Dx3kvPiTB1XDrW4569yiESMKQAc/i/dHcsZRcKp7ax7jT+ ltiVbQTpZQqkoiQHn6fCurYGf2+Q9SxW8kO/D1z0WgZWFC/GeSbSzb1keK5dnqRgBCpLmsT 1jz5Cq/4FHRqtku/0U90CbP1nwrEZV3CIu3bdDyNjFzPV883lrCqCkzA2irMEiRpHoLIxDk zvE5agt9NwlE0sH56lrmGpb1AqFYK8Aw9udXMMoGTQ+wPk80fOnpqbQ+Zlxg== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=carlh.net; arc=none; dmarc=pass header.from=carlh.net policy.dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=carlh.net; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=carlh.net policy.dmarc=none Received: from mts07.smtp.dk (mts07.smtp.dk [185.163.189.117]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 5441568E804 for ; Mon, 3 Nov 2025 22:39:00 +0200 (EET) Received: from main.carlh.net (unknown [164.90.213.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mysmtp.com (Postfix) with ESMTPSA id 4d0k2V2gmWz6S for ; Mon, 3 Nov 2025 21:38:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=carlh.net; s=rsa1; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=0/KeKZBFRTT1eR9Ezmcj4KUSF+DKTE/U0bW0Rn0XgzI=; b=Lk0W2BsmGv1uW3SWAoSM4Q4i12 pRQLDxY1A7zWI1Pzd2iLLn7spY8L6oydPfDRj2hiinbecz5V0jlQr+3MWJmmmwMHSTeZTSnDLd/TT FR33NQMxc+7yuJssF0MEi7lMmZxldYzMbr9aNoz6A9wt949B083DMdh39JSRXq9635IdHRnh1Sbv8 IrB3SdbWO2QM7a+M2wY8XWEPciO4ifsRIX+ffac01vkxORn/E7S1RcO6JrRDE4oE+ez8oejx2Pa/Q cm64t9825yzHHikvjIQEBPsuIsSPH915WpvsDMDiRMIj2VZO/KZzlsY+f70FetZtgdkIuRUXB7RQf qVfNTc/w==; Received: from carl (helo=localhost) by main.carlh.net with local-esmtp (Exim 4.94.2) (envelope-from ) id 1vG1KL-00CuSL-Gl for ffmpeg-devel@ffmpeg.org; Mon, 03 Nov 2025 20:38:57 +0000 Date: Mon, 3 Nov 2025 20:38:57 +0000 (GMT) To: ffmpeg-devel@ffmpeg.org Message-ID: <8bc32ae6-77aa-e5fe-bd1-cb55abdf9cc@carlh.net> MIME-Version: 1.0 X-Spam_score: -1.9 X-Spam_bar: - Message-ID-Hash: LR3RLF42STF5V2MNG2VYDHXQEPUPOAA5 X-Message-ID-Hash: LR3RLF42STF5V2MNG2VYDHXQEPUPOAA5 X-MailFrom: SRS0=0hyz=5L=carlh.net=cth@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH] libavfilter: Fix incorrect ebur128 peak calculation. List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Carl Hetherington via ffmpeg-devel Cc: Carl Hetherington Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: Since 3b26b782eeded9b9ab7fac013cd1a83a30d68206 it would only look at the first channel. Signed-off-by: cth@carlh.net --- libavfilter/f_ebur128.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c index a352f3831f..84d8e44035 100644 --- a/libavfilter/f_ebur128.c +++ b/libavfilter/f_ebur128.c @@ -657,7 +657,7 @@ double ff_ebur128_find_peak_c(double *restrict ch_peaks, const int nb_channels, for (int ch = 0; ch < nb_channels; ch++) { double ch_peak = ch_peaks[ch]; for (int i = 0; i < nb_samples; i++) { - const double sample = fabs(samples[i * nb_channels]); + const double sample = fabs(samples[i * nb_channels + ch]); ch_peak = FFMAX(ch_peak, sample); } maxpeak = FFMAX(maxpeak, ch_peak); -- 2.51.0 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org