summaryrefslogtreecommitdiffstats
path: root/apps/codecs/wav.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/wav.c')
-rw-r--r--apps/codecs/wav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c
index 36076caf25..2806409dd5 100644
--- a/apps/codecs/wav.c
+++ b/apps/codecs/wav.c
@@ -482,7 +482,7 @@ enum codec_status codec_start(struct codec_api* api)
else if (bitspersample > 8) {
/* Byte-swap data. */
for (i=0;i<n/2;i++) {
- int16_samples[i]=(int16_t)SWAB16(wavbuf[i]);
+ int16_samples[i]=(int16_t)letoh16(wavbuf[i]);
}
wavbufsize = n;
}