diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-28 04:01:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-23 15:14:41 +0200 |
commit | 033b0a4e7fc86588de76597b3dc21a8b8161bd32 (patch) | |
tree | c46002001da35d6a6d9649ba07ec3613b0b1d37d | |
parent | 2277706b35814fb8750664d182c030c6e80e703e (diff) | |
download | ffmpeg-033b0a4e7fc86588de76597b3dc21a8b8161bd32.tar.gz |
avfilter/graphdump: Fix pointer to local outside scope
Fixes CID1194435
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 18af0ce62da322176f7bd283b85314d2f41bee2c)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/graphdump.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c index c9d0fb0a7c..c0db843414 100644 --- a/libavfilter/graphdump.c +++ b/libavfilter/graphdump.c @@ -31,9 +31,10 @@ static int print_link_prop(AVBPrint *buf, AVFilterLink *link) { char *format; char layout[64]; + AVBPrint dummy_buffer = { 0 }; if (!buf) - buf = &(AVBPrint){ 0 }; /* dummy buffer */ + buf = &dummy_buffer; switch (link->type) { case AVMEDIA_TYPE_VIDEO: format = av_x_if_null(av_get_pix_fmt_name(link->format), "?"); |