aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-09-29 17:32:56 +0200
committerPaul B Mahol <onemda@gmail.com>2023-09-29 18:40:54 +0200
commit41f5b73903636e95cf74774331e9af7fd2fbc1e1 (patch)
treeac0c3d94550f9db8de09b722d7e87122e8fc36d4 /libavfilter
parent8623067e8d95ff91fe64c0e5b7d552b7b0b328b2 (diff)
downloadffmpeg-41f5b73903636e95cf74774331e9af7fd2fbc1e1.tar.gz
avfilter/f_ebur128: do not print summary log if nothing was processed
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/f_ebur128.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c
index ca47a58334..a921602b44 100644
--- a/libavfilter/f_ebur128.c
+++ b/libavfilter/f_ebur128.c
@@ -1059,6 +1059,7 @@ static av_cold void uninit(AVFilterContext *ctx)
ebur128->lra_high -= ebur128->pan_law;
}
+ if (ebur128->nb_channels > 0) {
av_log(ctx, AV_LOG_INFO, "Summary:\n\n"
" Integrated loudness:\n"
" I: %5.1f LUFS\n"
@@ -1082,6 +1083,7 @@ static av_cold void uninit(AVFilterContext *ctx)
PRINT_PEAK_SUMMARY("Sample", ebur128->sample_peak, SAMPLES);
PRINT_PEAK_SUMMARY("True", ebur128->true_peak, TRUE);
av_log(ctx, AV_LOG_INFO, "\n");
+ }
av_freep(&ebur128->y_line_ref);
av_freep(&ebur128->x);