audioconvert: use + in av_get_channel_layout_string.
authorNicolas George <nicolas.george@normalesup.org>
Sat, 5 Nov 2011 20:21:50 +0000 (21:21 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 6 Nov 2011 00:39:51 +0000 (01:39 +0100)
When constructing a channel layout string from individual channel names,
+ is a more practical separator than |, because it is usually not a shell
special character.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/audioconvert.c

index d89796d..f4c74f6 100644 (file)
@@ -113,7 +113,7 @@ void av_get_channel_layout_string(char *buf, int buf_size,
                 const char *name = get_channel_name(i);
                 if (name) {
                     if (ch > 0)
-                        av_strlcat(buf, "|", buf_size);
+                        av_strlcat(buf, "+", buf_size);
                     av_strlcat(buf, name, buf_size);
                 }
                 ch++;