History

avfilter/graphdump: Fix pointer to local outside scope

Fixes CID1194435 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer committed 12 years ago

Commit 18af0ce1 parent 2cf51431 file · +2 −1Browse files

Unified · Split

libavfilter/graphdump.c+2−1
@@ -31,9 +31,10 @@ static int print_link_prop(AVBPrint *buf, AVFilterLink *link) · 30 unmodified lines
31{31{
32 char *format;32 char *format;
33 char layout[64];33 char layout[64];
34 AVBPrint dummy_buffer = { 0 };
34 35
35 if (!buf)36 if (!buf)
36 buf = &(AVBPrint){ 0 }; /* dummy buffer */37 buf = &dummy_buffer;
37 switch (link->type) {38 switch (link->type) {
38 case AVMEDIA_TYPE_VIDEO:39 case AVMEDIA_TYPE_VIDEO:
39 format = av_x_if_null(av_get_pix_fmt_name(link->format), "?");40 format = av_x_if_null(av_get_pix_fmt_name(link->format), "?");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t