Re: [FFmpeg-devel] [PATCH 4/5] af_hdcd: don't log full HDCD stats if HDCD was not detected

2016-07-12 Thread Michael Niedermayer
On Tue, Jul 12, 2016 at 12:54:09PM -0500, Burt P wrote:
> Signed-off-by: Burt P 
> ---
>  libavfilter/af_hdcd.c | 16 +---
>  1 file changed, 9 insertions(+), 7 deletions(-)

applied

thanks

[...]
-- 
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope


signature.asc
Description: Digital signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] [PATCH 4/5] af_hdcd: don't log full HDCD stats if HDCD was not detected

2016-07-12 Thread Burt P
Signed-off-by: Burt P 
---
 libavfilter/af_hdcd.c | 16 +---
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c
index 4104935..8acbdda 100644
--- a/libavfilter/af_hdcd.c
+++ b/libavfilter/af_hdcd.c
@@ -1157,13 +1157,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)
-- 
2.7.4

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel