diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-26 12:02:29 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-27 18:16:35 +0200 |
commit | daeef7d220d2c62a3390a6674e8c1e08f17de85a (patch) | |
tree | bae4b3ae2a1a89c3013cc9830b8f9249069c8cb6 /libavfilter/graphdump.c | |
parent | 831718bbab43fb7fd7c3fb4eb28c8565bc980e6a (diff) |
avfilter/graphdump: Properly initialize AVBPrint
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/graphdump.c')
-rw-r--r-- | libavfilter/graphdump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c index 79ef1a733f..22b2e21559 100644 --- a/libavfilter/graphdump.c +++ b/libavfilter/graphdump.c @@ -31,10 +31,12 @@ static int print_link_prop(AVBPrint *buf, AVFilterLink *link) { char *format; char layout[64]; - AVBPrint dummy_buffer = { 0 }; + AVBPrint dummy_buffer; - if (!buf) + if (!buf) { buf = &dummy_buffer; + av_bprint_init(buf, 0, AV_BPRINT_SIZE_COUNT_ONLY); + } switch (link->type) { case AVMEDIA_TYPE_VIDEO: format = av_x_if_null(av_get_pix_fmt_name(link->format), "?"); |