[FFmpeg-cvslog] avfilter/graphdump: Properly initialize AVBPrint
Andreas Rheinhardt
git at videolan.org
Fri Aug 27 19:27:22 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Aug 26 12:02:29 2021 +0200| [daeef7d220d2c62a3390a6674e8c1e08f17de85a] | committer: Andreas Rheinhardt
avfilter/graphdump: Properly initialize AVBPrint
Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=daeef7d220d2c62a3390a6674e8c1e08f17de85a
---
libavfilter/graphdump.c | 6 ++++--
1 file 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), "?");
More information about the ffmpeg-cvslog
mailing list