summaryrefslogtreecommitdiff
path: root/libavfilter/graphdump.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-28 04:01:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-28 04:01:50 +0200
commit18af0ce62da322176f7bd283b85314d2f41bee2c (patch)
tree912c491d22bc3f8e03f18d4bb1f64deff1ffaa6d /libavfilter/graphdump.c
parent2cf514354bbeebb2334d00ab54c3fcb8ae2ee678 (diff)
avfilter/graphdump: Fix pointer to local outside scope
Fixes CID1194435 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/graphdump.c')
-rw-r--r--libavfilter/graphdump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c
index 1b5932115b..3d702c6af5 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), "?");