[FFmpeg-devel,v1,10/11] avutil/log: Replace magic number by micro for bprint init

Submitted by Jun Zhao on June 10, 2018, 9:16 a.m.

Details

Message ID 1528622220-22930-11-git-send-email-mypopydev@gmail.com
State Accepted
Commit 9ba94ac57a2cf2149cc919726fd3949ca6a14786
Headers show

Commit Message

Jun Zhao June 10, 2018, 9:16 a.m.
Replace magic number by micro for bprint init.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
---
 libavutil/log.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libavutil/log.c b/libavutil/log.c
index 9b7d484..93a156b 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;