History

avfilter/graphdump: Don't silently truncate channel layout string

64B are not enough any more.

Andreas Rheinhardt committed 5 years ago

Commit 48348cd1 parent daeef7d1 file · +4 −5Browse files

Showing the changes to libavfilter/graphdump.c (1 of 1 file). Show all

Unified · Split

libavfilter/graphdump.c+4−5
@@ -30,7 +30,6 @@ · 29 unmodified lines
3030 static int print_link_prop(AVBPrint *buf, AVFilterLink *link)
3131 {
3232 char *format;
33− char layout[64];
3433 AVBPrint dummy_buffer;
3534
3635 if (!buf) {
@@ -47,11 +46,11 @@ static int print_link_prop(AVBPrint *buf, AVFilterLink *link) · 10 unmodified lines
4746 break;
4847
4948 case AVMEDIA_TYPE_AUDIO:
50− av_get_channel_layout_string(layout, sizeof(layout),
51− link->channels, link->channel_layout);
5249 format = av_x_if_null(av_get_sample_fmt_name(link->format), "?");
53− av_bprintf(buf, "[%dHz %s:%s]",
54− (int)link->sample_rate, format, layout);
50+ av_bprintf(buf, "[%dHz %s:",
51+ (int)link->sample_rate, format);
52+ av_bprint_channel_layout(buf, link->channels, link->channel_layout);
53+ av_bprint_chars(buf, ']', 1);
5554 break;
5655
5756 default:

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