diff options
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r-- | audio/out/ao.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c index 40ca53d874..4b9b2f9bec 100644 --- a/audio/out/ao.c +++ b/audio/out/ao.c @@ -416,6 +416,7 @@ bool ao_chmap_sel_adjust(struct ao *ao, const struct mp_chmap_sel *s, struct mp_chmap c = s->chmaps[i]; struct mp_chmap cr = c; mp_chmap_reorder_norm(&cr); + mp_chmap_remove_na(&cr); MP_DBG(ao, "chmap_sel #%d: %s (%s)\n", i, mp_chmap_to_str(&c), mp_chmap_to_str(&cr)); } @@ -424,6 +425,7 @@ bool ao_chmap_sel_adjust(struct ao *ao, const struct mp_chmap_sel *s, if (r) { struct mp_chmap mapr = *map; mp_chmap_reorder_norm(&mapr); + mp_chmap_remove_na(&mapr); MP_DBG(ao, "result: %s (%s)\n", mp_chmap_to_str(map), mp_chmap_to_str(&mapr)); } |