From 63b86fc8abac9a4b16d47a2a2853ae175827b936 Mon Sep 17 00:00:00 2001 From: Pacifico Paul <46673657+paulpacifico@users.noreply.github.com> Date: Wed, 10 Jan 2024 19:46:44 +0400 Subject: [PATCH] Add files via upload --- src/library/FFMPEG.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/library/FFMPEG.java b/src/library/FFMPEG.java index a3f066dc..2985b243 100644 --- a/src/library/FFMPEG.java +++ b/src/library/FFMPEG.java @@ -1966,9 +1966,18 @@ private static void postAnalyse() { || comboFonctions.getSelectedItem().toString().equals(language.getProperty("functionNormalization")) || (caseNormalizeAudio.isSelected() && caseNormalizeAudio.isVisible())) { - analyseLufs = null; - analyseLufs = getAll.toString().substring(getAll.toString().lastIndexOf("Summary:") + 12); - + analyseLufs = ""; + + for (String line : getAll.toString().substring(getAll.toString().lastIndexOf("Summary:") + 12).split(System.lineSeparator())) + { + if (line.contains("[out#")) + { + break; + } + else + analyseLufs += line + System.lineSeparator(); + } + shortTermValues = new StringBuilder(); float momentaryTerm = (float) -1000.0;