diff options
author | wm4 <wm4@nowhere> | 2015-06-26 23:04:44 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-26 23:04:44 +0200 |
commit | 554b4217a0ca44e7bfc19f53eeef656e4910e7d9 (patch) | |
tree | 677b3936550b728e014fa2c2986d80127e328be9 | |
parent | e4e7fade960962511f17072928c273178f50ed7b (diff) | |
download | mpv-554b4217a0ca44e7bfc19f53eeef656e4910e7d9.tar.bz2 mpv-554b4217a0ca44e7bfc19f53eeef656e4910e7d9.tar.xz |
ao_coreaudio_utils: use a macro
This is actually the last line of code outside of format.c/h which still
tries to fiddle with the format bitfields.
-rw-r--r-- | audio/out/ao_coreaudio_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_coreaudio_utils.c b/audio/out/ao_coreaudio_utils.c index 08341a6f7c..7d504bb04b 100644 --- a/audio/out/ao_coreaudio_utils.c +++ b/audio/out/ao_coreaudio_utils.c @@ -181,7 +181,7 @@ static void ca_fill_asbd_raw(AudioStreamBasicDescription *asbd, int mp_format, channels_per_buffer = 1; } - if ((mp_format & AF_FORMAT_TYPE_MASK) == AF_FORMAT_F) { + if (AF_FORMAT_IS_FLOAT(mp_format)) { asbd->mFormatFlags |= kAudioFormatFlagIsFloat; } else if (!af_fmt_unsigned(mp_format)) { asbd->mFormatFlags |= kAudioFormatFlagIsSignedInteger; |