64B are not enough any more.
Showing the changes to libavfilter/graphdump.c (1 of 1 file). Show all
Unified · Split
| @@ -30,7 +30,6 @@ · 29 unmodified lines | |||
| 30 | static int print_link_prop(AVBPrint *buf, AVFilterLink *link) | 30 | static int print_link_prop(AVBPrint *buf, AVFilterLink *link) |
| 31 | { | 31 | { |
| 32 | char *format; | 32 | char *format; |
| 33 | char layout[64]; | ||
| 34 | AVBPrint dummy_buffer; | 33 | AVBPrint dummy_buffer; |
| 35 | 34 | ||
| 36 | if (!buf) { | 35 | if (!buf) { |
| @@ -47,11 +46,11 @@ static int print_link_prop(AVBPrint *buf, AVFilterLink *link) · 10 unmodified lines | |||
| 47 | break; | 46 | break; |
| 48 | 47 | ||
| 49 | case AVMEDIA_TYPE_AUDIO: | 48 | case AVMEDIA_TYPE_AUDIO: |
| 50 | av_get_channel_layout_string(layout, sizeof(layout), | ||
| 51 | link->channels, link->channel_layout); | ||
| 52 | format = av_x_if_null(av_get_sample_fmt_name(link->format), "?"); | 49 | format = av_x_if_null(av_get_sample_fmt_name(link->format), "?"); |
| 53 | av_bprintf(buf, "[%dHz %s:%s]", | 50 | av_bprintf(buf, "[%dHz %s:", |
| 54 | (int)link->sample_rate, format, layout); | 51 | (int)link->sample_rate, format); |
| 52 | av_bprint_channel_layout(buf, link->channels, link->channel_layout); | ||
| 53 | av_bprint_chars(buf, ']', 1); | ||
| 55 | break; | 54 | break; |
| 56 | 55 | ||
| 57 | default: | 56 | default: |