1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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>
This commit is contained in:
James Almer 2016-08-26 15:30:58 -03:00
parent 3c821a1a7b
commit 4fed4aca0c

View File

@ -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);
}