diff options
author | Jan Ekström <jeebjp@gmail.com> | 2020-06-13 14:34:44 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2020-08-04 00:17:56 +0300 |
commit | 3fcfe6ba40130d017bf2c9ca1d03d1f6426c8cec (patch) | |
tree | 3503ebef00c8c6c663866544f6315a999e7cdf95 /libavcodec | |
parent | 93a2913ac8a3aa25c05fd30036da89cb493e68ee (diff) | |
download | ffmpeg-3fcfe6ba40130d017bf2c9ca1d03d1f6426c8cec.tar.gz |
avcodec/aacdec_template: mark second LFE element as LFE2
We now have the capability to do this.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/aacdec_template.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c index a473e1bad7..21db12fdab 100644 --- a/libavcodec/aacdec_template.c +++ b/libavcodec/aacdec_template.c @@ -368,6 +368,15 @@ static uint64_t sniff_channel_order(uint8_t (*layout_map)[3], int tags) }; i++; } + if (i < tags && layout_map[i][2] == AAC_CHANNEL_LFE) { + e2c_vec[i] = (struct elem_to_channel) { + .av_position = AV_CH_LOW_FREQUENCY_2, + .syn_ele = TYPE_LFE, + .elem_id = layout_map[i][1], + .aac_position = AAC_CHANNEL_LFE + }; + i++; + } while (i < tags && layout_map[i][2] == AAC_CHANNEL_LFE) { e2c_vec[i] = (struct elem_to_channel) { .av_position = UINT64_MAX, |