X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fgraphdump.c;h=8bc7b162d77e171f26e8abd3c61b035a61d842aa;hb=c636dc9819ebab1a84237cc017a6a3d35ebc9cdc;hp=73777191d630f023364d94d8e3ee1370c3c1ddb6;hpb=c1c720d5279aa2e8e0518e2900f5f2b267ee974a;p=ffmpeg diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c index 73777191d63..8bc7b162d77 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);