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

Patch hide | download patch | download mbox

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index d4ac690..73616b9 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -1689,7 +1689,7 @@  static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
 
     vid = 0;
     av_bprint_init(&buf, 0, AV_BPRINT_SIZE_AUTOMATIC);
-    av_bprint_init(&buf_script, 0, 1);
+    av_bprint_init(&buf_script, 0, AV_BPRINT_SIZE_AUTOMATIC);
     for (i = 0; i < nb_output_streams; i++) {
         float q = -1;
         ost = output_streams[i];