aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/channel_layout.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-08-21 09:02:04 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-08-23 21:44:38 +0200
commite23f84d9652474353d8bbc42787a56ec1991908f (patch)
tree3ea15879ea935055df3a9dfeba8dbab58a0e2da2 /libavutil/channel_layout.c
parentd5eab59a5373b22aa52d6053a8e853e95a6e131e (diff)
downloadffmpeg-e23f84d9652474353d8bbc42787a56ec1991908f.tar.gz
channel_layout: Add a 16channel default layout
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavutil/channel_layout.c')
-rw-r--r--libavutil/channel_layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/channel_layout.c b/libavutil/channel_layout.c
index 253c495f4f..41340ecdb6 100644
--- a/libavutil/channel_layout.c
+++ b/libavutil/channel_layout.c
@@ -97,6 +97,7 @@ static const struct {
{ "7.1(wide)", 8, AV_CH_LAYOUT_7POINT1_WIDE },
{ "7.1(wide)", 8, AV_CH_LAYOUT_7POINT1_WIDE_BACK },
{ "octagonal", 8, AV_CH_LAYOUT_OCTAGONAL },
+ { "hexadecagonal", 16, AV_CH_LAYOUT_HEXADECAGONAL },
{ "downmix", 2, AV_CH_LAYOUT_STEREO_DOWNMIX, },
{ 0 }
};
@@ -193,6 +194,7 @@ uint64_t av_get_default_channel_layout(int nb_channels)
case 6: return AV_CH_LAYOUT_5POINT1;
case 7: return AV_CH_LAYOUT_6POINT1;
case 8: return AV_CH_LAYOUT_7POINT1;
+ case 16: return AV_CH_LAYOUT_HEXADECAGONAL;
default: return 0;
}
}