This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit bca473e155ba7eeaa13acb7104ac4b26f40428ba
Author:     James Almer <[email protected]>
AuthorDate: Tue Jun 2 12:07:06 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Thu Jun 4 14:18:35 2026 +0000

    avcodec/aacenc: don't write SIDE position elements
    
    Most parsers outright dislike anything being signaled as SIDE, as they 
expect layouts
    to follow how ordering is pre-defined in non-0 channel_config values.
    
    Signed-off-by: James Almer <[email protected]>
---
 libavcodec/aacenc.c | 56 ++++++++++++++++++++++++++---------------------------
 1 file changed, 28 insertions(+), 28 deletions(-)

diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 2c8965095c..0d0dcb5126 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -154,9 +154,9 @@ static const AACPCEInfo aac_pce_configs[] = {
     },
     {
         .layout = AV_CHANNEL_LAYOUT_2_2,
-        .num_ele = { 1, 1, 0, 0 },
-        .pairing = { { 1 }, { 1 }, },
-        .index = { { 0 }, { 1 }, },
+        .num_ele = { 1, 0, 1, 0 },
+        .pairing = { { 1 }, { 0 }, { 1 }, },
+        .index = { { 0 }, { 0 }, { 1 } },
         .config_map = { 2, TYPE_CPE, TYPE_CPE },
         .reorder_map = { 0, 1, 2, 3 },
     },
@@ -170,17 +170,17 @@ static const AACPCEInfo aac_pce_configs[] = {
     },
     {
         .layout = AV_CHANNEL_LAYOUT_5POINT0,
-        .num_ele = { 2, 1, 0, 0 },
-        .pairing = { { 0, 1 }, { 1 }, },
-        .index = { { 0, 0 }, { 1 } },
+        .num_ele = { 2, 0, 1, 0 },
+        .pairing = { { 0, 1 }, { 0 }, { 1 } },
+        .index = { { 0, 0 }, { 0 }, { 1 } },
         .config_map = { 3, TYPE_SCE, TYPE_CPE, TYPE_CPE },
         .reorder_map = { 2, 0, 1, 3, 4 },
     },
     {
         .layout = AV_CHANNEL_LAYOUT_5POINT1,
-        .num_ele = { 2, 1, 0, 1 },
-        .pairing = { { 0, 1 }, { 1 }, },
-        .index = { { 0, 0 }, { 1 }, { 0 }, { 0 }, },
+        .num_ele = { 2, 0, 1, 1 },
+        .pairing = { { 0, 1 }, { 0 }, { 1 }, },
+        .index = { { 0, 0 }, { 0 }, { 1 }, { 0 } },
         .config_map = { 4, TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_LFE },
         .reorder_map = { 2, 0, 1, 4, 5, 3 },
     },
@@ -202,17 +202,17 @@ static const AACPCEInfo aac_pce_configs[] = {
     },
     {
         .layout = AV_CHANNEL_LAYOUT_6POINT0,
-        .num_ele = { 2, 1, 1, 0 },
-        .pairing = { { 0, 1 }, { 1 }, { 0 }, },
-        .index = { { 0, 0 }, { 1 }, { 1 } },
+        .num_ele = { 2, 0, 2, 0 },
+        .pairing = { { 0, 1 }, { 0 }, { 1, 0 } },
+        .index = { { 0, 0 }, { 0 }, { 1, 1 } },
         .config_map = { 4, TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_SCE },
         .reorder_map = { 2, 0, 1, 4, 5, 3 },
     },
     {
         .layout = AV_CHANNEL_LAYOUT_6POINT0_FRONT,
-        .num_ele = { 2, 1, 0, 0 },
-        .pairing = { { 1, 1 }, { 1 } },
-        .index = { { 0, 1 }, { 2 }, },
+        .num_ele = { 2, 0, 1, 0 },
+        .pairing = { { 1, 1 }, { 0 }, { 1 } },
+        .index = { { 0, 1 }, { 0 }, { 2 }, },
         .config_map = { 3, TYPE_CPE, TYPE_CPE, TYPE_CPE, },
         .reorder_map = { 0, 1, 2, 3, 4, 5 },
     },
@@ -226,9 +226,9 @@ static const AACPCEInfo aac_pce_configs[] = {
     },
     {
         .layout = AV_CHANNEL_LAYOUT_6POINT1,
-        .num_ele = { 2, 1, 1, 1 },
-        .pairing = { { 0, 1 },{ 1 },{ 0 }, },
-        .index = { { 0, 0 },{ 1 },{ 1 },{ 0 } },
+        .num_ele = { 2, 0, 2, 1 },
+        .pairing = { { 0, 1 }, { 0 }, { 1, 0 }, { 0 }, },
+        .index = { { 0, 0 }, { 0 }, { 1, 1 }, { 0 } },
         .config_map = { 5, TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_SCE, TYPE_LFE },
         .reorder_map = { 2, 0, 1, 5, 6, 4, 3 },
     },
@@ -242,10 +242,10 @@ static const AACPCEInfo aac_pce_configs[] = {
     },
     {
         .layout = AV_CHANNEL_LAYOUT_6POINT1_FRONT,
-        .num_ele = { 2, 1, 0, 1 },
-        .pairing = { { 1, 1 },{ 1 } },
-        .index = { { 0, 1 },{ 2 },{ 0 },{ 0 } },
-        .config_map = { 4, TYPE_CPE, TYPE_CPE, TYPE_CPE, TYPE_LFE },
+        .num_ele = { 2, 0, 1, 1 },
+        .pairing = { { 1, 1 }, { 0 }, { 1 }, { 0 }, },
+        .index = { { 0, 1 }, { 0 }, { 2 }, { 0 }, },
+        .config_map = { 3, TYPE_CPE, TYPE_CPE, TYPE_CPE, TYPE_LFE, },
         .reorder_map = { 0, 1, 3, 4, 5, 6, 2 },
     },
     {
@@ -258,9 +258,9 @@ static const AACPCEInfo aac_pce_configs[] = {
     },
     {
         .layout = AV_CHANNEL_LAYOUT_7POINT0_FRONT,
-        .num_ele = { 3, 1, 0, 0 },
-        .pairing = { { 0, 1, 1 }, { 1 }, },
-        .index = { { 0, 0, 1 }, { 2 }, },
+        .num_ele = { 3, 0, 1, 0 },
+        .pairing = { { 0, 1, 1 }, { 0 }, { 1 }, },
+        .index = { { 0, 0, 1 }, { 0 }, { 2 }, },
         .config_map = { 4, TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_CPE },
         .reorder_map = { 2, 0, 1, 3, 4, 5, 6 },
     },
@@ -274,9 +274,9 @@ static const AACPCEInfo aac_pce_configs[] = {
     },
     {
         .layout = AV_CHANNEL_LAYOUT_7POINT1_WIDE,
-        .num_ele = { 3, 1, 0, 1 },
-        .pairing = { { 0, 1, 1 }, { 1 }, },
-        .index = { { 0, 0, 1 }, { 2 }, },
+        .num_ele = { 3, 0, 1, 1 },
+        .pairing = { { 0, 1, 1 }, { 0 }, { 1 }, { 0 }, },
+        .index = { { 0, 0, 1 }, { 0 }, { 2 }, { 0 }, },
         .config_map = { 5, TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_CPE, TYPE_LFE },
         .reorder_map = { 2, 0, 1, 4, 5, 6, 7, 3 },
     },

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to