fftools/ffmpeg_filter: Replace the number by macro for bprint init
authorJun Zhao <mypopydev@gmail.com>
Sun, 10 Jun 2018 07:57:26 +0000 (15:57 +0800)
committerJun Zhao <jun.zhao@intel.com>
Sun, 17 Jun 2018 01:59:33 +0000 (09:59 +0800)
Replace the number by macro for bprint init.

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

index 068f499..6518d50 100644 (file)
@@ -775,7 +775,7 @@ static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter,
     sar = ifilter->sample_aspect_ratio;
     if(!sar.den)
         sar = (AVRational){0,1};
-    av_bprint_init(&args, 0, 1);
+    av_bprint_init(&args, 0, AV_BPRINT_SIZE_AUTOMATIC);
     av_bprintf(&args,
              "video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:"
              "pixel_aspect=%d/%d:sws_param=flags=%d",