diff mbox series

[FFmpeg-devel,4/5] avcodec/aacdec_template: mark second LFE element as LFE2

Message ID 20200616210253.7169-5-jeebjp@gmail.com
State Superseded
Headers show
Series 22.2 channel layout support for AAC decoding
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Jan Ekström June 16, 2020, 9:02 p.m. UTC
We now have the capability to do this.
---
 libavcodec/aacdec_template.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c
index a473e1bad7..0590e77d75 100644
--- a/libavcodec/aacdec_template.c
+++ b/libavcodec/aacdec_template.c
@@ -370,7 +370,7 @@  static uint64_t sniff_channel_order(uint8_t (*layout_map)[3], int tags)
     }
     while (i < tags && layout_map[i][2] == AAC_CHANNEL_LFE) {
         e2c_vec[i] = (struct elem_to_channel) {
-            .av_position  = UINT64_MAX,
+            .av_position  = AV_CH_LOW_FREQUENCY_2,
             .syn_ele      = TYPE_LFE,
             .elem_id      = layout_map[i][1],
             .aac_position = AAC_CHANNEL_LFE