Fixes CID1194435 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Unified · Split
| @@ -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), "?"); |