432 static const struct {
465 return bitmap < 0x40000 ? bitmap : 0;
468 channels = tag & 0xFFFF;
471 layout_map = mov_ch_layout_map[channels];
474 for (i = 0; layout_map[i].
tag != 0; i++) {
475 if (layout_map[i].tag == tag)
478 return layout_map[i].
layout;
486 return 1
U << (label - 1);
495 uint64_t channel_layout,
518 layout_map = mov_ch_layout_map[channels];
521 for (i = 0; layouts[i] != 0; i++) {
522 if ((layouts[i] & 0xFFFF) != channels)
524 for (j = 0; layout_map[j].
tag != 0; j++) {
525 if (layout_map[j].tag == layouts[i] &&
526 layout_map[j].
layout == channel_layout)
529 if (layout_map[j].tag)
536 if (tag == 0 && channel_layout > 0 && channel_layout < 0x40000) {
538 *bitmap = (uint32_t)channel_layout;
550 uint32_t layout_tag, bitmap, num_descr, label_mask;
560 av_dlog(s,
"chan: layout=%u bitmap=%u num_descr=%u\n",
561 layout_tag, bitmap, num_descr);
563 if (size < 12ULL + num_descr * 20ULL)
567 for (i = 0; i < num_descr; i++) {
575 if (layout_tag == 0) {
577 if (mask_incr == 0) {
581 label_mask |= mask_incr;
584 if (layout_tag == 0) {