Commit 7a71544f authored by Nicolas George's avatar Nicolas George

lavfi/graphdump: fix output for unknown layouts.

parent 0eb56a08
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment