lavu: add 2.1 channel layout.
authorClément Bœsch <clement.boesch@smartjog.com>
Wed, 11 Jan 2012 09:09:37 +0000 (10:09 +0100)
committerClément Bœsch <ubitux@gmail.com>
Mon, 16 Jan 2012 16:38:23 +0000 (17:38 +0100)
libavutil/audioconvert.c

index c4cab22..dd4c330 100644 (file)
@@ -64,6 +64,7 @@ static const struct {
 } channel_layout_map[] = {
     { "mono",        1,  AV_CH_LAYOUT_MONO },
     { "stereo",      2,  AV_CH_LAYOUT_STEREO },
+    { "2.1",         3,  AV_CH_LAYOUT_2POINT1 },
     { "4.0",         4,  AV_CH_LAYOUT_4POINT0 },
     { "quad",        4,  AV_CH_LAYOUT_QUAD },
     { "5.0",         5,  AV_CH_LAYOUT_5POINT0_BACK },