mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
ao_coreaudio: fix ifdef'd conditional
The big endian case was not covered. Doesn't make much difference since mpv runs on Macs with x86 only, but for the sake of correctness.
This commit is contained in:
parent
cd10936357
commit
14f1a25a8e
@ -536,9 +536,9 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd)
|
|||||||
if (d->stream_asbd.mFormatID & kAudioFormat60958AC3)
|
if (d->stream_asbd.mFormatID & kAudioFormat60958AC3)
|
||||||
ao->format = AF_FORMAT_AC3_LE;
|
ao->format = AF_FORMAT_AC3_LE;
|
||||||
else if (d->stream_asbd.mFormatFlags & kAudioFormatFlagIsBigEndian)
|
else if (d->stream_asbd.mFormatFlags & kAudioFormatFlagIsBigEndian)
|
||||||
|
#endif
|
||||||
ca_msg(MSGL_WARN,
|
ca_msg(MSGL_WARN,
|
||||||
"stream has non-native byte order, digital output may fail\n");
|
"stream has non-native byte order, digital output may fail\n");
|
||||||
#endif
|
|
||||||
|
|
||||||
ao->samplerate = d->stream_asbd.mSampleRate;
|
ao->samplerate = d->stream_asbd.mSampleRate;
|
||||||
ao->bps = ao->samplerate *
|
ao->bps = ao->samplerate *
|
||||||
|
Loading…
Reference in New Issue
Block a user