fftools/cmdutils: Replace the number by macro for bprint init
authorJun Zhao <mypopydev@gmail.com>
Sun, 10 Jun 2018 07:53:24 +0000 (15:53 +0800)
committerJun Zhao <jun.zhao@intel.com>
Sun, 17 Jun 2018 02:00:23 +0000 (10:00 +0800)
Replace the number by macro for bprint init.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
fftools/cmdutils.c

index 844f433..b8de319 100644 (file)
@@ -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);