Fixes CID1194435 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Showing the changes to libavfilter/graphdump.c (1 of 1 file). Show all
Unified · Split
| @@ -31,9 +31,10 @@ static int print_link_prop(AVBPrint *buf, AVFilterLink *link) · 30 unmodified lines | ||
| 31 | 31 | { |
| 32 | 32 | char *format; |
| 33 | 33 | char layout[64]; |
| 34 | + AVBPrint dummy_buffer = { 0 }; | |
| 34 | 35 | |
| 35 | 36 | if (!buf) |
| 36 | − buf = &(AVBPrint){ 0 }; /* dummy buffer */ | |
| 37 | + buf = &dummy_buffer; | |
| 37 | 38 | switch (link->type) { |
| 38 | 39 | case AVMEDIA_TYPE_VIDEO: |
| 39 | 40 | format = av_x_if_null(av_get_pix_fmt_name(link->format), "?"); |