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
3131 {
3232 char *format;
3333 char layout[64];
34+ AVBPrint dummy_buffer = { 0 };
3435
3536 if (!buf)
36− buf = &(AVBPrint){ 0 }; /* dummy buffer */
37+ buf = &dummy_buffer;
3738 switch (link->type) {
3839 case AVMEDIA_TYPE_VIDEO:
3940 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