mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
shairplay: update to latest version
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
@@ -1,24 +1,11 @@
|
||||
--- a/src/lib/alac/alac.c
|
||||
+++ b/src/lib/alac/alac.c
|
||||
@@ -29,11 +29,7 @@
|
||||
@@ -29,7 +29,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
-#ifdef __BIG_ENDIAN__
|
||||
-static const int host_bigendian = 1;
|
||||
-#else
|
||||
-static const int host_bigendian = 0;
|
||||
-#endif
|
||||
+static int host_bigendian = 0;
|
||||
+#define host_bigendian (htonl(42) == 42)
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -1181,6 +1177,8 @@ alac_file *create_alac(int samplesize, i
|
||||
{
|
||||
alac_file *newfile = malloc(sizeof(alac_file));
|
||||
|
||||
+ host_bigendian = (htonl(42) == 42);
|
||||
+
|
||||
newfile->samplesize = samplesize;
|
||||
newfile->numchannels = numchannels;
|
||||
newfile->bytespersample = (samplesize / 8) * numchannels;
|
||||
|
||||
Reference in New Issue
Block a user