mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avfilter/graphdump: Fix pointer to local outside scope
Fixes CID1194435 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2cf514354b
commit
18af0ce62d
@ -31,9 +31,10 @@ static int print_link_prop(AVBPrint *buf, AVFilterLink *link)
|
|||||||
{
|
{
|
||||||
char *format;
|
char *format;
|
||||||
char layout[64];
|
char layout[64];
|
||||||
|
AVBPrint dummy_buffer = { 0 };
|
||||||
|
|
||||||
if (!buf)
|
if (!buf)
|
||||||
buf = &(AVBPrint){ 0 }; /* dummy buffer */
|
buf = &dummy_buffer;
|
||||||
switch (link->type) {
|
switch (link->type) {
|
||||||
case AVMEDIA_TYPE_VIDEO:
|
case AVMEDIA_TYPE_VIDEO:
|
||||||
format = av_x_if_null(av_get_pix_fmt_name(link->format), "?");
|
format = av_x_if_null(av_get_pix_fmt_name(link->format), "?");
|
||||||
|
Loading…
Reference in New Issue
Block a user