From 0928715203737414b7f50549e5fc2817381230e3 Mon Sep 17 00:00:00 2001 From: borine <32966433+borine@users.noreply.github.com> Date: Mon, 3 Feb 2025 09:24:22 +0000 Subject: [PATCH] fix bigendian again --- utils/aplay/resampler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/aplay/resampler.c b/utils/aplay/resampler.c index 08c503b80..981dce785 100644 --- a/utils/aplay/resampler.c +++ b/utils/aplay/resampler.c @@ -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;