lavfi/graphdump: fix output for unknown layouts.

This commit is contained in:
Nicolas George 2013-03-14 20:13:13 +01:00
parent 0eb56a085d
commit 7a71544f9d
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ static int print_link_prop(AVBPrint *buf, AVFilterLink *link)
case AVMEDIA_TYPE_AUDIO:
av_get_channel_layout_string(layout, sizeof(layout),
-1, link->channel_layout);
link->channels, link->channel_layout);
format = av_x_if_null(av_get_sample_fmt_name(link->format), "?");
av_bprintf(buf, "[%dHz %s:%s]",
(int)link->sample_rate, format, layout);