summaryrefslogtreecommitdiffstats
path: root/libavfilter/af_hdcd.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2016-07-12 12:54:09 -0500
committerMichael Niedermayer <michael@niedermayer.cc>2016-07-12 22:55:04 +0200
commit7af44ce2f7c2f7eac5f0bfbc08872cc6b250ccae (patch)
tree592bd072922b7d37c26042c0095c52f93244cb1c /libavfilter/af_hdcd.c
parent0d8caeb41e5082edfbbb47b4b6402fcae486826f (diff)
downloadffmpeg-streaming-7af44ce2f7c2f7eac5f0bfbc08872cc6b250ccae.zip
ffmpeg-streaming-7af44ce2f7c2f7eac5f0bfbc08872cc6b250ccae.tar.gz
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>
Diffstat (limited to 'libavfilter/af_hdcd.c')
-rw-r--r--libavfilter/af_hdcd.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c
index 73a0b93..4f61999 100644
--- a/libavfilter/af_hdcd.c
+++ b/libavfilter/af_hdcd.c
@@ -1165,13 +1165,15 @@ static av_cold void uninit(AVFilterContext *ctx)
}
/* log the HDCD decode information */
- av_log(ctx, AV_LOG_INFO,
- "HDCD detected: %s, 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->max_gain_adjustment,
- (s->uses_transient_filter) ? "detected" : "not detected"
- );
+ if (s->hdcd_detected)
+ av_log(ctx, AV_LOG_INFO,
+ "HDCD detected: yes, peak_extend: %s, max_gain_adj: %0.1f dB, transient_filter: %s\n",
+ (s->uses_peak_extend) ? "enabled" : "never enabled",
+ s->max_gain_adjustment,
+ (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)
OpenPOWER on IntegriCloud