[FFmpeg-cvslog] lavfi/graphdump: Replace the number by macro for bprint init

Jun Zhao git at videolan.org
Sun Jun 17 05:01:52 EEST 2018


ffmpeg | branch: master | Jun Zhao <mypopydev at gmail.com> | Sun Jun 10 16:01:35 2018 +0800| [483532bc72a242e88e253d4df2a7cf06cfeb38f3] | committer: Jun Zhao

lavfi/graphdump: Replace the number by macro for bprint init

Replace the number by macro for bprint init.

Signed-off-by: Jun Zhao <mypopydev at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=483532bc72a242e88e253d4df2a7cf06cfeb38f3
---

 libavfilter/graphdump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c
index 73777191d6..8bc7b162d7 100644
--- a/libavfilter/graphdump.c
+++ b/libavfilter/graphdump.c
@@ -156,7 +156,7 @@ char *avfilter_graph_dump(AVFilterGraph *graph, const char *options)
     AVBPrint buf;
     char *dump;
 
-    av_bprint_init(&buf, 0, 0);
+    av_bprint_init(&buf, 0, AV_BPRINT_SIZE_COUNT_ONLY);
     avfilter_graph_dump_to_buf(&buf, graph);
     av_bprint_init(&buf, buf.len + 1, buf.len + 1);
     avfilter_graph_dump_to_buf(&buf, graph);



More information about the ffmpeg-cvslog mailing list