Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
SL11
>
sox
> sox-14.3.1-aliasing.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File sox-14.3.1-aliasing.patch of Package sox (Revision 2)
Currently displaying revision
2
,
show latest
Index: src/sox-fmt.c =================================================================== --- src/sox-fmt.c.orig +++ src/sox-fmt.c @@ -77,8 +77,10 @@ static int write_header(sox_format_t * f size_t comments_len = strlen(comments); size_t comments_bytes = (comments_len + 7) & ~7u; /* Multiple of 8 bytes */ uint64_t size = ft->olength? ft->olength : ft->signal.length; + uint32_t local_magic; + memcpy(&local_magic, &magic[MACHINE_IS_BIGENDIAN], sizeof(local_magic)); sox_bool error = sox_false - ||lsx_writedw(ft, *(uint32_t *)&magic[MACHINE_IS_BIGENDIAN]) + ||lsx_writedw(ft, local_magic) ||lsx_writedw(ft, FIXED_HDR + (unsigned)comments_bytes) ||lsx_writeqw(ft, size) ||lsx_writedf(ft, ft->signal.rate)