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

Unified · Split

libavfilter/f_ebur128.c+2−0
@@ -1059,6 +1059,7 @@ static av_cold void uninit(AVFilterContext *ctx) · 1058 unmodified lines
1059 ebur128->lra_high -= ebur128->pan_law;1059 ebur128->lra_high -= ebur128->pan_law;
1060 }1060 }
1061 1061
1062 if (ebur128->nb_channels > 0) {
1062 av_log(ctx, AV_LOG_INFO, "Summary:\n\n"1063 av_log(ctx, AV_LOG_INFO, "Summary:\n\n"
1063 " Integrated loudness:\n"1064 " Integrated loudness:\n"
1064 " I: %5.1f LUFS\n"1065 " I: %5.1f LUFS\n"
@@ -1082,6 +1083,7 @@ static av_cold void uninit(AVFilterContext *ctx) · 17 unmodified lines
1082 PRINT_PEAK_SUMMARY("Sample", ebur128->sample_peak, SAMPLES);1083 PRINT_PEAK_SUMMARY("Sample", ebur128->sample_peak, SAMPLES);
1083 PRINT_PEAK_SUMMARY("True", ebur128->true_peak, TRUE);1084 PRINT_PEAK_SUMMARY("True", ebur128->true_peak, TRUE);
1084 av_log(ctx, AV_LOG_INFO, "\n");1085 av_log(ctx, AV_LOG_INFO, "\n");
1086 }
1085 1087
1086 av_freep(&ebur128->y_line_ref);1088 av_freep(&ebur128->y_line_ref);
1087 av_freep(&ebur128->x);1089 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