diff options
author | wm4 <wm4@nowhere> | 2015-05-07 23:07:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-07 23:07:14 +0200 |
commit | b91b4944bd7ddf6fef4c4254d457117017292c0a (patch) | |
tree | 9df3f41d12fe7dc3599d1a0794e1b2b2eb9f1b5e /audio/chmap.h | |
parent | 34770887410cab45e2779d43a83aa4f6bdecf926 (diff) | |
download | mpv-b91b4944bd7ddf6fef4c4254d457117017292c0a.tar.bz2 mpv-b91b4944bd7ddf6fef4c4254d457117017292c0a.tar.xz |
audio: define only a single NA speaker ID
Remove the requirement from mp_chmap that speaker entries must be
unique. Use this to get rid of all the redundant NA speaker IDs.
Diffstat (limited to 'audio/chmap.h')
-rw-r--r-- | audio/chmap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/chmap.h b/audio/chmap.h index 296b2a1712..d3ce5cdb21 100644 --- a/audio/chmap.h +++ b/audio/chmap.h @@ -62,9 +62,9 @@ enum mp_speaker_id { MP_SPEAKER_ID_UNKNOWN_LAST = MP_SPEAKER_ID_UNKNOWN0 + MP_NUM_CHANNELS - 1, // "Silent" channels. These are sometimes used to insert padding for - // unused channels. - MP_SPEAKER_ID_NA0, - MP_SPEAKER_ID_NA_LAST = MP_SPEAKER_ID_NA0 + MP_NUM_CHANNELS - 1, + // unused channels. Unlike other speaker types, multiple of these can + // occur in a single mp_chmap. + MP_SPEAKER_ID_NA, // Including the unassigned IDs in between. This is not a valid ID anymore, // but is still within uint8_t. |