Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-08-26 21:30:58 +0300
committerJames Almer <jamrial@gmail.com>2016-09-03 17:57:18 +0300
commit4fed4aca0c20f9ca255189df87ba58638061cecd (patch)
treedda98275beee4dfa8aede947d73f5a691c8ec6d5 /libavcodec/utils.c
parent3c821a1a7bf21536197e68453376242bb5832687 (diff)
avcodec/utils: print initial and trailing paddings only in verbose levels
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 138125a2d9..7e99c58565 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);
}