[FFmpeg-devel,v1,01/11] fftools/cmdutils: 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-2-git-send-email-mypopydev@gmail.com
State Accepted
Commit bd47cca6a79616ae1ebf2baf1e8b071dd1707b0d
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>
---
 fftools/cmdutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index 844f433..b8de319 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -1018,7 +1018,7 @@  static int init_report(const char *env)
         av_free(key);
     }
 
-    av_bprint_init(&filename, 0, 1);
+    av_bprint_init(&filename, 0, AV_BPRINT_SIZE_AUTOMATIC);
     expand_filename_template(&filename,
                              av_x_if_null(filename_template, "%p-%t.log"), tm);
     av_free(filename_template);