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

Patch hide | download patch | download mbox

diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 068f499..6518d50 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -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",