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 (1 of 1 file). Show all

Unified · Split

libavfilter/graphdump.c+4−5
@@ -30,7 +30,6 @@ · 29 unmodified lines
30static int print_link_prop(AVBPrint *buf, AVFilterLink *link)30static 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:

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