Not needed as every possible index is mapped.
Showing the changes to libavcodec/aac (1 of 1 file). Show all
Unified · Split
| @@ -371,8 +371,6 @@ int ff_aac_usac_config_decode(AACDecContext *ac, AVCodecContext *avctx, · 370 unmodified lines | |||
| 371 | for (int i = 0; i < nb_channels; i++) { | 371 | for (int i = 0; i < nb_channels; i++) { |
| 372 | AVChannelCustom *cm = &ac->oc[1].ch_layout.u.map[i]; | 372 | AVChannelCustom *cm = &ac->oc[1].ch_layout.u.map[i]; |
| 373 | cm->id = usac_ch_pos_to_av[get_bits(gb, 5)]; /* bsOutputChannelPos */ | 373 | cm->id = usac_ch_pos_to_av[get_bits(gb, 5)]; /* bsOutputChannelPos */ |
| 374 | if (cm->id == AV_CHAN_NONE) | ||
| 375 | cm->id = AV_CHAN_UNKNOWN; | ||
| 376 | } | 374 | } |
| 377 | 375 | ||
| 378 | ret = av_channel_layout_retype(&ac->oc[1].ch_layout, | 376 | ret = av_channel_layout_retype(&ac->oc[1].ch_layout, |