Skip to content
Snippets Groups Projects
Commit 18af0ce6 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avfilter/graphdump: Fix pointer to local outside scope


Fixes CID1194435
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 2cf51435
No related branches found
No related tags found
No related merge requests found
......@@ -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), "?");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment