The branch, master has been updated
       via  1eb2cbd8659a99f29c351f352f84e9cf5ffe4c9f (commit)
      from  f60db2e566110e045b7bf22885514623d40735f8 (commit)


- Log -----------------------------------------------------------------
commit 1eb2cbd8659a99f29c351f352f84e9cf5ffe4c9f
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:40:08 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]>

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