summaryrefslogtreecommitdiffstats
path: root/audio/chmap.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-07 23:15:52 +0200
committerwm4 <wm4@nowhere>2015-05-07 23:20:06 +0200
commit55e777f10b3e241f2634b471e482bab230773ce0 (patch)
tree405d3ab1e4601bf3fac52cbfa4e233fffc4de487 /audio/chmap.h
parentb91b4944bd7ddf6fef4c4254d457117017292c0a (diff)
downloadmpv-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 'audio/chmap.h')
-rw-r--r--audio/chmap.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/audio/chmap.h b/audio/chmap.h
index d3ce5cdb21..d4cdc3ea85 100644
--- a/audio/chmap.h
+++ b/audio/chmap.h
@@ -56,15 +56,12 @@ enum mp_speaker_id {
MP_SPEAKER_ID_SDR, // SURROUND_DIRECT_RIGHT
MP_SPEAKER_ID_LFE2, // LOW_FREQUENCY_2
- // Special mpv-specific speaker entries reserved for channels which have no
- // known meaning.
- MP_SPEAKER_ID_UNKNOWN0 = 64,
- MP_SPEAKER_ID_UNKNOWN_LAST = MP_SPEAKER_ID_UNKNOWN0 + MP_NUM_CHANNELS - 1,
+ // Speaker IDs >= 64 are not representable in WAVEFORMATEXTENSIBLE or libav*.
// "Silent" channels. These are sometimes used to insert padding for
// unused channels. Unlike other speaker types, multiple of these can
// occur in a single mp_chmap.
- MP_SPEAKER_ID_NA,
+ MP_SPEAKER_ID_NA = 64,
// Including the unassigned IDs in between. This is not a valid ID anymore,
// but is still within uint8_t.