[FFmpeg-cvslog] avutil/log: Replace the number by macro for bprint init

Jun Zhao git at videolan.org
Sun Jun 17 05:01:59 EEST 2018


ffmpeg | branch: master | Jun Zhao <mypopydev at gmail.com> | Sun Jun 10 16:03:40 2018 +0800| [9ba94ac57a2cf2149cc919726fd3949ca6a14786] | committer: Jun Zhao

avutil/log: Replace the number by macro for bprint init

Replace the number by macro for bprint init.

Signed-off-by: Jun Zhao <mypopydev at gmail.com>

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

 libavutil/log.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavutil/log.c b/libavutil/log.c
index 9b7d48487f..93a156b8e4 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -247,9 +247,9 @@ static void format_line(void *avcl, int level, const char *fmt, va_list vl,
                         AVBPrint part[4], int *print_prefix, int type[2])
 {
     AVClass* avc = avcl ? *(AVClass **) avcl : NULL;
-    av_bprint_init(part+0, 0, 1);
-    av_bprint_init(part+1, 0, 1);
-    av_bprint_init(part+2, 0, 1);
+    av_bprint_init(part+0, 0, AV_BPRINT_SIZE_AUTOMATIC);
+    av_bprint_init(part+1, 0, AV_BPRINT_SIZE_AUTOMATIC);
+    av_bprint_init(part+2, 0, AV_BPRINT_SIZE_AUTOMATIC);
     av_bprint_init(part+3, 0, 65536);
 
     if(type) type[0] = type[1] = AV_CLASS_CATEGORY_NA + 16;



More information about the ffmpeg-cvslog mailing list