History

aacdec_usac: remove fallback for custom maps with invalid position

Not needed as every possible index is mapped.

Lynne committed 2 years ago

Commit ae495b51 parent 91ab17e1 file · +0 −2Browse files

Showing the changes to libavcodec/aac (1 of 1 file). Show all

Unified · Split

libavcodec/aac/aacdec_usac.c+0−2
@@ -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,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t