aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-28 04:01:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-23 18:17:42 +0200
commit4ecd7182851f0f4876af4cc78e6a6308714f67c4 (patch)
treee6b50efe98ca87117476a78f771a10007390e2ae
parent0607c8af2bd108410c0882dd96533c6ceaef617a (diff)
downloadffmpeg-4ecd7182851f0f4876af4cc78e6a6308714f67c4.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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c
index 45f64c0146..478afc654a 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), "?");