]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/graphdump.c
lavfi/lavfutils: switch to the new decoding API
[ffmpeg] / libavfilter / graphdump.c
index 73777191d630f023364d94d8e3ee1370c3c1ddb6..79ef1a733fe2555a62dd63ebe07d292d2f39c0f0 100644 (file)
@@ -154,9 +154,9 @@ static void avfilter_graph_dump_to_buf(AVBPrint *buf, AVFilterGraph *graph)
 char *avfilter_graph_dump(AVFilterGraph *graph, const char *options)
 {
     AVBPrint buf;
-    char *dump;
+    char *dump = NULL;
 
-    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);