[vlc-commits] [Git][videolan/vlc][master] audio_output/apple: print mFormatID FourCC in correct byte order
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Tue Apr 21 09:14:00 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
fbbab575 by Felix Paul Kühne at 2026-04-21T10:32:34+02:00
audio_output/apple: print mFormatID FourCC in correct byte order
Fixes #29189
- - - - -
1 changed file:
- modules/audio_output/apple/coreaudio_common.h
Changes:
=====================================
modules/audio_output/apple/coreaudio_common.h
=====================================
@@ -32,12 +32,14 @@
#include <AudioUnit/AudioUnit.h>
#include <AudioToolbox/AudioToolbox.h>
+#include <libkern/OSByteOrder.h>
#include <os/lock.h>
#include <mach/mach_time.h>
#define STREAM_FORMAT_MSG(pre, sfm) \
pre "[%f][%4.4s][%u][%u][%u][%u][%u][%u]", \
- sfm.mSampleRate, (char *)&sfm.mFormatID, \
+ sfm.mSampleRate, \
+ (char *)&(UInt32){ OSSwapInt32(sfm.mFormatID) }, \
(unsigned int)sfm.mFormatFlags, (unsigned int)sfm.mBytesPerPacket, \
(unsigned int)sfm.mFramesPerPacket, (unsigned int)sfm.mBytesPerFrame, \
(unsigned int)sfm.mChannelsPerFrame, (unsigned int)sfm.mBitsPerChannel
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fbbab5751865de084374d503d49bbea83ddacb2b
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fbbab5751865de084374d503d49bbea83ddacb2b
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list