summaryrefslogtreecommitdiff
path: root/apps/codecs/libpcm/yamaha_adpcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libpcm/yamaha_adpcm.c')
-rw-r--r--apps/codecs/libpcm/yamaha_adpcm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/codecs/libpcm/yamaha_adpcm.c b/apps/codecs/libpcm/yamaha_adpcm.c
index 073a1dc703..9f1a4742ee 100644
--- a/apps/codecs/libpcm/yamaha_adpcm.c
+++ b/apps/codecs/libpcm/yamaha_adpcm.c
@@ -19,7 +19,6 @@
19 * 19 *
20 ****************************************************************************/ 20 ****************************************************************************/
21#include "codeclib.h" 21#include "codeclib.h"
22#include "pcm_common.h"
23#include "adpcm_seek.h" 22#include "adpcm_seek.h"
24#include "support_formats.h" 23#include "support_formats.h"
25 24
@@ -173,8 +172,8 @@ static int decode(const uint8_t *inbuf, size_t inbufsize,
173 ch = fmt->channels - 1; 172 ch = fmt->channels - 1;
174 while (inbufsize) 173 while (inbufsize)
175 { 174 {
176 *outbuf++ = create_pcmdata(0, *inbuf ) << 13; 175 *outbuf++ = create_pcmdata(0, *inbuf ) << (PCM_OUTPUT_DEPTH - 16);
177 *outbuf++ = create_pcmdata(ch, *inbuf >> 4) << 13; 176 *outbuf++ = create_pcmdata(ch, *inbuf >> 4) << (PCM_OUTPUT_DEPTH - 16);
178 nsamples += 2; 177 nsamples += 2;
179 178
180 inbuf++; 179 inbuf++;