1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00

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

Signed-off-by: Burt P <pburt0@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Burt P 2016-07-12 12:54:09 -05:00 committed by Michael Niedermayer
parent 0d8caeb41e
commit 7af44ce2f7

View File

@ -1165,13 +1165,15 @@ static av_cold void uninit(AVFilterContext *ctx)
} }
/* log the HDCD decode information */ /* log the HDCD decode information */
av_log(ctx, AV_LOG_INFO, if (s->hdcd_detected)
"HDCD detected: %s, peak_extend: %s, max_gain_adj: %0.1f dB, transient_filter: %s\n", av_log(ctx, AV_LOG_INFO,
(s->hdcd_detected) ? "yes" : "no", "HDCD detected: yes, peak_extend: %s, max_gain_adj: %0.1f dB, transient_filter: %s\n",
(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)