[FFmpeg-devel] [PATCH] lavfi/graphdump: fix output for unknown layouts.
Nicolas George
nicolas.george at normalesup.org
Thu Mar 14 20:34:31 CET 2013
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
libavfilter/graphdump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c
index 45f64c0..28e9bc9 100644
--- a/libavfilter/graphdump.c
+++ b/libavfilter/graphdump.c
@@ -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);
--
1.7.10.4
More information about the ffmpeg-devel
mailing list