[FFmpeg-devel] [PATCH v1 03/11] fftools/ffmpeg_filter: Replace magic number by micro for bprint init

Jun Zhao mypopydev at gmail.com
Sun Jun 10 12:16:52 EEST 2018


Replace magic number by micro for bprint init.

Signed-off-by: Jun Zhao <mypopydev at gmail.com>
---
 fftools/ffmpeg_filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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",
-- 
2.7.4



More information about the ffmpeg-devel mailing list