The branch, release/8.0 has been updated
       via  5630394ebf2956a3f8e1eac00912467a582ac94d (commit)
      from  cb570f824dd38fccb5f048b7e5737d43bca6266d (commit)


- Log -----------------------------------------------------------------
commit 5630394ebf2956a3f8e1eac00912467a582ac94d
Author:     Carl Hetherington via ffmpeg-devel <[email protected]>
AuthorDate: Mon Nov 3 20:38:57 2025 +0000
Commit:     Tobias Rapp <[email protected]>
CommitDate: Tue Nov 18 08:56:57 2025 +0100

    avfilter/f_ebur128: Fix incorrect ebur128 peak calculation.
    
    Since 3b26b782eeded9b9ab7fac013cd1a83a30d68206 it would only look at the
    first channel.
    
    Signed-off-by: Carl Hetherington <[email protected]>
    Reviewed-by: Niklas Haas <[email protected]>
    (cherry picked from commit 1eb2cbd8659a99f29c351f352f84e9cf5ffe4c9f)

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);

-----------------------------------------------------------------------

Summary of changes:
 libavfilter/f_ebur128.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to