summaryrefslogtreecommitdiff
path: root/apps/codecs/libpcm/linear_pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libpcm/linear_pcm.c')
-rw-r--r--apps/codecs/libpcm/linear_pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libpcm/linear_pcm.c b/apps/codecs/libpcm/linear_pcm.c
index 2a37f3d2a8..82c70eb3b6 100644
--- a/apps/codecs/libpcm/linear_pcm.c
+++ b/apps/codecs/libpcm/linear_pcm.c
@@ -95,7 +95,7 @@ static inline void decode_s16le(const uint8_t *inbuf, size_t inbufsize, int32_t
95 size_t i = 0; 95 size_t i = 0;
96 96
97 for ( ; i < inbufsize; i += 2) 97 for ( ; i < inbufsize; i += 2)
98 outbuf[i/2] = (inbuf[i] << INC_DEPTH_16)|(SE(inbuf[i+1]) << INC_DEPTH_16); 98 outbuf[i/2] = (inbuf[i] << INC_DEPTH_16)|(SE(inbuf[i+1]) << INC_DEPTH_8);
99} 99}
100 100
101static inline void decode_u16le(const uint8_t *inbuf, size_t inbufsize, int32_t *outbuf) 101static inline void decode_u16le(const uint8_t *inbuf, size_t inbufsize, int32_t *outbuf)
@@ -155,7 +155,7 @@ static inline void decode_u24be(const uint8_t *inbuf, size_t inbufsize, int32_t
155 size_t i = 0; 155 size_t i = 0;
156 156
157 for ( ; i < inbufsize; i += 3) 157 for ( ; i < inbufsize; i += 3)
158 outbuf[i/3] = (inbuf[i+2] << INC_DEPTH_24)|(inbuf[i+1] << INC_DEPTH_8)| 158 outbuf[i/3] = (inbuf[i+2] << INC_DEPTH_24)|(inbuf[i+1] << INC_DEPTH_16)|
159 (SFT(inbuf[i]) << INC_DEPTH_8); 159 (SFT(inbuf[i]) << INC_DEPTH_8);
160} 160}
161 161