From 1679222e188ecb819e4d301c23ace1e18dcce747 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 1 Dec 2014 18:28:00 +0100 Subject: audio: fix one of the previous commits Fixes commit 52c51149. It broke multichannel (or possibly everything) for ao_alsa, ao_oss, ao_sndio. --- audio/chmap_sel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3