summaryrefslogtreecommitdiff
path: root/libavcodec/vorbis_data.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-06-03 17:54:20 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:43 -0300
commite869c06ef58c8574b1ba06fdc15ea643229f8ff7 (patch)
tree755ea711385a080ecc708ddff5fb1d5ed54020ea /libavcodec/vorbis_data.c
parente0bb126de8294cb0d49495caf99aaa582ef51daa (diff)
libopus: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/vorbis_data.c')
-rw-r--r--libavcodec/vorbis_data.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libavcodec/vorbis_data.c b/libavcodec/vorbis_data.c
index fd7e291de2..4f4ea03f15 100644
--- a/libavcodec/vorbis_data.c
+++ b/libavcodec/vorbis_data.c
@@ -34,6 +34,7 @@ const uint8_t ff_vorbis_channel_layout_offsets[8][8] = {
{ 0, 2, 1, 7, 5, 6, 3, 4 },
};
+#if FF_API_OLD_CHANNEL_LAYOUT
const uint64_t ff_vorbis_channel_layouts[9] = {
AV_CH_LAYOUT_MONO,
AV_CH_LAYOUT_STEREO,
@@ -45,6 +46,23 @@ const uint64_t ff_vorbis_channel_layouts[9] = {
AV_CH_LAYOUT_7POINT1,
0
};
+#endif
+
+const AVChannelLayout ff_vorbis_ch_layouts[9] = {
+ AV_CHANNEL_LAYOUT_MONO,
+ AV_CHANNEL_LAYOUT_STEREO,
+ AV_CHANNEL_LAYOUT_SURROUND,
+ AV_CHANNEL_LAYOUT_QUAD,
+ AV_CHANNEL_LAYOUT_5POINT0_BACK,
+ AV_CHANNEL_LAYOUT_5POINT1_BACK,
+ {
+ .nb_channels = 7,
+ .order = AV_CHANNEL_ORDER_NATIVE,
+ .u.mask = AV_CH_LAYOUT_5POINT1 | AV_CH_BACK_CENTER,
+ },
+ AV_CHANNEL_LAYOUT_7POINT1,
+ { 0 }
+};
DECLARE_ALIGNED(16, static const float, vwin64)[32] = {
0.0009460463F, 0.0085006468F, 0.0235352254F, 0.0458950567F,