Skip to content

Commit

Permalink
fix bigendian again
Browse files Browse the repository at this point in the history
  • Loading branch information
borine authored and arkq committed Feb 7, 2025
1 parent df4afab commit 0928715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/aplay/resampler.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ void resampler_format_le_to_native(void *buffer, size_t len, snd_pcm_format_t fo
uint32_t *data = buffer;
/* Convert to S32 */
for (n = 0; n < len; n++) {
if (data[n] & 0x00000800)
if (data[n] & 0x00008000)
data[n] |= 0x000000ff;
else
data[n] &= 0xffffff00;
Expand Down

0 comments on commit 0928715

Please sign in to comment.