summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-01 18:28:00 +0100
committerAlessandro Ghedini <alessandro@ghedini.me>2014-12-01 18:31:49 +0100
commit1679222e188ecb819e4d301c23ace1e18dcce747 (patch)
tree73ce67b156eec6b98371778110b5d75844800bf1
parent74270cd1db56da84e244ba7102ea0b6c543c9a34 (diff)
downloadmpv-1679222e188ecb819e4d301c23ace1e18dcce747.tar.bz2
mpv-1679222e188ecb819e4d301c23ace1e18dcce747.tar.xz
audio: fix one of the previous commits
Fixes commit 52c51149. It broke multichannel (or possibly everything) for ao_alsa, ao_oss, ao_sndio.
-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));