Browse Source

avfilter/graphdump: fix use of uninitialized variables

In case of av_bprint_finalize failed.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.3
Zhao Zhili Michael Niedermayer 6 years ago
parent
commit
bbb68be0cc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/graphdump.c

+ 1
- 1
libavfilter/graphdump.c View File

@@ -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);


Loading…
Cancel
Save