[FFmpeg-devel,v1,07/11] lavfi/graphdump: 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-8-git-send-email-mypopydev@gmail.com
State Accepted
Commit 483532bc72a242e88e253d4df2a7cf06cfeb38f3
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>
---
 libavfilter/graphdump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c
index 7377719..8bc7b16 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);