[FFmpeg-devel] [PATCH 1/2] avcodec/utils: print initial and trailing paddings only in verbose levels
James Almer
jamrial at gmail.com
Fri Aug 26 21:51:58 EEST 2016
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavcodec/utils.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 138125a..7e99c58 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -3258,7 +3258,8 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
&& enc->bits_per_raw_sample != av_get_bytes_per_sample(enc->sample_fmt) * 8)
snprintf(buf + strlen(buf), buf_size - strlen(buf),
" (%d bit)", enc->bits_per_raw_sample);
- if (enc->initial_padding || enc->trailing_padding) {
+ if (av_log_get_level() >= AV_LOG_VERBOSE &&
+ (enc->initial_padding || enc->trailing_padding)) {
snprintf(buf + strlen(buf), buf_size - strlen(buf),
", delay %d, padding %d", enc->initial_padding, enc->trailing_padding);
}
--
2.9.1
More information about the ffmpeg-devel
mailing list