summaryrefslogtreecommitdiffstats
path: root/audio/chmap_sel.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/chmap_sel.c')
-rw-r--r--audio/chmap_sel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/chmap_sel.c b/audio/chmap_sel.c
index 8e591aea44..81354422d9 100644
--- a/audio/chmap_sel.c
+++ b/audio/chmap_sel.c
@@ -88,7 +88,7 @@ void mp_chmap_sel_add_map(struct mp_chmap_sel *s, const struct mp_chmap *map)
return;
if (!s->chmaps)
s->chmaps = s->chmaps_storage;
- if (s->num_chmaps == MP_ARRAY_SIZE(s->chmaps)) {
+ if (s->num_chmaps == MP_ARRAY_SIZE(s->chmaps_storage)) {
if (!s->tmp)
return;
s->chmaps = talloc_memdup(s->tmp, s->chmaps, sizeof(s->chmaps_storage));