History

avfilter/f_ebur128: do not print summary log if nothing was processed

Paul B Mahol committed 3 years ago

Commit 41f5b731 parent 86230671 file · +2 −0Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/f_ebur128.c+2−0
@@ -1059,6 +1059,7 @@ static av_cold void uninit(AVFilterContext *ctx) · 1058 unmodified lines
10591059 ebur128->lra_high -= ebur128->pan_law;
10601060 }
10611061
1062+ if (ebur128->nb_channels > 0) {
10621063 av_log(ctx, AV_LOG_INFO, "Summary:\n\n"
10631064 " Integrated loudness:\n"
10641065 " I: %5.1f LUFS\n"
@@ -1082,6 +1083,7 @@ static av_cold void uninit(AVFilterContext *ctx) · 17 unmodified lines
10821083 PRINT_PEAK_SUMMARY("Sample", ebur128->sample_peak, SAMPLES);
10831084 PRINT_PEAK_SUMMARY("True", ebur128->true_peak, TRUE);
10841085 av_log(ctx, AV_LOG_INFO, "\n");
1086+ }
10851087
10861088 av_freep(&ebur128->y_line_ref);
10871089 av_freep(&ebur128->x);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t