[FFmpeg-cvslog] avcodec/utils: print initial and trailing paddings only in verbose levels

James Almer git at videolan.org
Sat Sep 3 17:58:06 EEST 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Aug 26 15:30:58 2016 -0300| [4fed4aca0c20f9ca255189df87ba58638061cecd] | committer: James Almer

avcodec/utils: print initial and trailing paddings only in verbose levels

Reviewed-by: Carl Eugen Hoyos <ceffmpeg at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4fed4aca0c20f9ca255189df87ba58638061cecd
---

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



More information about the ffmpeg-cvslog mailing list