Commit 7af44ce2 authored by Burt P's avatar Burt P Committed by Michael Niedermayer

af_hdcd: don't log full HDCD stats if HDCD was not detected

Signed-off-by: 's avatarBurt P <pburt0@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0d8caeb4
...@@ -1165,13 +1165,15 @@ static av_cold void uninit(AVFilterContext *ctx) ...@@ -1165,13 +1165,15 @@ static av_cold void uninit(AVFilterContext *ctx)
} }
/* log the HDCD decode information */ /* log the HDCD decode information */
if (s->hdcd_detected)
av_log(ctx, AV_LOG_INFO, av_log(ctx, AV_LOG_INFO,
"HDCD detected: %s, peak_extend: %s, max_gain_adj: %0.1f dB, transient_filter: %s\n", "HDCD detected: yes, peak_extend: %s, max_gain_adj: %0.1f dB, transient_filter: %s\n",
(s->hdcd_detected) ? "yes" : "no",
(s->uses_peak_extend) ? "enabled" : "never enabled", (s->uses_peak_extend) ? "enabled" : "never enabled",
s->max_gain_adjustment, s->max_gain_adjustment,
(s->uses_transient_filter) ? "detected" : "not detected" (s->uses_transient_filter) ? "detected" : "not detected"
); );
else
av_log(ctx, AV_LOG_INFO, "HDCD detected: no\n");
} }
static av_cold int init(AVFilterContext *ctx) static av_cold int init(AVFilterContext *ctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment