X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fgraphdump.c;h=79ef1a733fe2555a62dd63ebe07d292d2f39c0f0;hb=a859e57424ca0a00d17bdc034c52005c18184961;hp=73777191d630f023364d94d8e3ee1370c3c1ddb6;hpb=20608261f7818fc034f96034a089e755f095716e;p=ffmpeg diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c index 73777191d63..79ef1a733fe 100644 --- a/libavfilter/graphdump.c +++ b/libavfilter/graphdump.c @@ -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);