Commit bbb68be0 authored by Zhao Zhili's avatar Zhao Zhili Committed by Michael Niedermayer

avfilter/graphdump: fix use of uninitialized variables

In case of av_bprint_finalize failed.
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 4a3aa77d
......@@ -154,7 +154,7 @@ 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, AV_BPRINT_SIZE_COUNT_ONLY);
avfilter_graph_dump_to_buf(&buf, graph);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment