diff options
author | wm4 <wm4@nowhere> | 2015-05-07 23:15:52 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-07 23:20:06 +0200 |
commit | 55e777f10b3e241f2634b471e482bab230773ce0 (patch) | |
tree | 405d3ab1e4601bf3fac52cbfa4e233fffc4de487 /test/chmap_sel.c | |
parent | b91b4944bd7ddf6fef4c4254d457117017292c0a (diff) | |
download | mpv-55e777f10b3e241f2634b471e482bab230773ce0.tar.bz2 mpv-55e777f10b3e241f2634b471e482bab230773ce0.tar.xz |
audio: remove UNKNOWN pseudo speakers
Reuse MP_SPEAKER_ID_NA for this. If all mp_chmap entries are set to NA,
the channel layout has special "unknown channel layout" semantics, which
are used to deal with some corner cases.
Diffstat (limited to 'test/chmap_sel.c')
-rw-r--r-- | test/chmap_sel.c | 4 |
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")); |