summaryrefslogtreecommitdiffstats
path: root/test/chmap_sel.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/chmap_sel.c')
-rw-r--r--test/chmap_sel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/chmap_sel.c b/test/chmap_sel.c
index a1eae0b6b3..3857c20511 100644
--- a/test/chmap_sel.c
+++ b/test/chmap_sel.c
@@ -89,9 +89,7 @@ static void test_mp_chmap_sel_fallback_reject_unknown(void **state) {
struct mp_chmap b;
struct mp_chmap_sel s = {0};
- a.num = 2;
- a.speaker[0] = MP_SPEAKER_ID_UNKNOWN0;
- a.speaker[1] = MP_SPEAKER_ID_UNKNOWN0 + 1;
+ mp_chmap_set_unknown(&a, 2);
mp_chmap_from_str(&b, bstr0("5.1"));