[libav-bugs] [Bug 863] Add support for AAC channel configurations 11 and 12

bugzilla at libav.org bugzilla at libav.org
Thu Jun 4 19:58:08 CEST 2015


https://bugzilla.libav.org/show_bug.cgi?id=863

--- Comment #2 from lu_zero at gentoo.org <lu_zero at gentoo.org> ---
The feedback from nu774:

"
I heard that channel configurations 11 and 12 are defined like this on 23001-8:

11: C L R Ls Rs Cs LFE
12: C L R Ls Rs Lsr Rsr LFE

So, aac_channel_layout_map[][][] should be like this:

11: SCE(front), CPE(front), CPE(side or back), SCE(back), LFE
12: SCE(front), CPE(front), CPE(side), CPE(back), LFE 
"

Or

diff --git a/libavcodec/aacdectab.h b/libavcodec/aacdectab.h
index c00fddd..b7c5f7e 100644
--- a/libavcodec/aacdectab.h
+++ b/libavcodec/aacdectab.h
@@ -91,8 +91,8 @@ static const uint8_t aac_channel_layout_map[16][5][3] = {
     { { 0, } },
     { { 0, } },
     { { 0, } },
-    { { TYPE_SCE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 0, AAC_CHANNEL_FRONT },
{ TYPE_CPE, 1, AAC_CHANNEL_FRONT }, { TYPE_SCE, 1, AAC_CHANNEL_BACK }, {
TYPE_LFE
-    { { TYPE_SCE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 0, AAC_CHANNEL_FRONT },
{ TYPE_CPE, 1, AAC_CHANNEL_FRONT }, { TYPE_CPE, 2, AAC_CHANNEL_BACK }, {
TYPE_LFE
+    { { TYPE_SCE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 0, AAC_CHANNEL_FRONT },
{ TYPE_CPE, 1, AAC_CHANNEL_BACK }, { TYPE_SCE, 1, AAC_CHANNEL_BACK }, {
TYPE_LFE,
+    { { TYPE_SCE, 0, AAC_CHANNEL_FRONT }, { TYPE_CPE, 0, AAC_CHANNEL_FRONT },
{ TYPE_CPE, 1, AAC_CHANNEL_SIDE }, { TYPE_CPE, 2, AAC_CHANNEL_BACK }, {
TYPE_LFE,
     { { 0, } },
     /* TODO: Add 7+1 TOP configuration */
 };

Is this working for you?

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20150604/b04fd202/attachment.html>


More information about the libav-bugs mailing list