summaryrefslogtreecommitdiffstats
path: root/test/chmap_sel.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-07 23:15:52 +0200
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-05-09 21:13:52 +0900
commit0ed627d5ab0a41bb33eb54e92a2b3e8890fbdadf (patch)
treecf7ce0a3d77e800be8475192d51e4817404649a3 /test/chmap_sel.c
parent1127bb41c2aa4bf60be960ab80fd163bc7011bdb (diff)
downloadmpv-0ed627d5ab0a41bb33eb54e92a2b3e8890fbdadf.tar.bz2
mpv-0ed627d5ab0a41bb33eb54e92a2b3e8890fbdadf.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. (cherry picked from commit 55e777f10b3e241f2634b471e482bab230773ce0)
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"));