summaryrefslogtreecommitdiff
path: root/libavcodec/flac.c
diff options
context:
space:
mode:
authorTim Walker <tdskywalker@gmail.com>2013-01-22 21:53:54 +0100
committerAnton Khirnov <anton@khirnov.net>2013-02-06 21:44:06 +0100
commit9d083d64172ebf94e343a3a269eabba5bbcdf182 (patch)
tree60bd2aaa1087f632c554a09b123e872b8556de36 /libavcodec/flac.c
parent41244e13d5452e70cfd42f76ede4a20b7081c71f (diff)
downloadffmpeg-9d083d64172ebf94e343a3a269eabba5bbcdf182.tar.gz
flac: add channel layout masks for streams with 7 or 8 channels.
They were added to the latest FLAC specification: https://git.xiph.org/?p=flac-website.git;a=commit;h=65c199a2 Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/flac.c')
-rw-r--r--libavcodec/flac.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/flac.c b/libavcodec/flac.c
index 32b28d0443..aa322b42f9 100644
--- a/libavcodec/flac.c
+++ b/libavcodec/flac.c
@@ -29,13 +29,15 @@
static const int8_t sample_size_table[] = { 0, 8, 12, 0, 16, 20, 24, 0 };
-static const int64_t flac_channel_layouts[6] = {
+static const uint64_t flac_channel_layouts[8] = {
AV_CH_LAYOUT_MONO,
AV_CH_LAYOUT_STEREO,
AV_CH_LAYOUT_SURROUND,
AV_CH_LAYOUT_QUAD,
AV_CH_LAYOUT_5POINT0,
- AV_CH_LAYOUT_5POINT1
+ AV_CH_LAYOUT_5POINT1,
+ AV_CH_LAYOUT_6POINT1,
+ AV_CH_LAYOUT_7POINT1
};
static int64_t get_utf8(GetBitContext *gb)