diff options
author | Niklas Haas <git@haasn.dev> | 2025-06-13 16:54:27 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2025-06-21 17:21:58 +0200 |
commit | 229393d8dc8fff295a4ff9ab34957dd24edd5fd7 (patch) | |
tree | a467508be575e3e09371680aed73e41228897132 /libavcodec/rangecoder.c | |
parent | a96175e76f2cfaf1006ab576a4d420cd7957a644 (diff) | |
download | ffmpeg-229393d8dc8fff295a4ff9ab34957dd24edd5fd7.tar.gz |
avfilter/f_ebur128: move true peak calculation out of main loop
Easier to read, less convoluted, and ~30% faster. Most importantly, this
avoids repeating the redundant recalculation of the true peak on every
single sample, by moving the FIND_PEAK() loop out of the main loop. (Note
that FIND_PEAK() does not depend on the current sample index at all, so
there is no reason for it to ever be recomputed here)
Diffstat (limited to 'libavcodec/rangecoder.c')
0 files changed, 0 insertions, 0 deletions