diff options
Diffstat (limited to 'apps/codecs/libpcm/qt_ima_adpcm.c')
-rw-r--r-- | apps/codecs/libpcm/qt_ima_adpcm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/codecs/libpcm/qt_ima_adpcm.c b/apps/codecs/libpcm/qt_ima_adpcm.c index e99a91796d..003de22dd8 100644 --- a/apps/codecs/libpcm/qt_ima_adpcm.c +++ b/apps/codecs/libpcm/qt_ima_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 "ima_adpcm_common.h" | 22 | #include "ima_adpcm_common.h" |
24 | #include "support_formats.h" | 23 | #include "support_formats.h" |
25 | 24 | ||
@@ -107,9 +106,9 @@ static int decode(const uint8_t *inbuf, size_t inbufsize, | |||
107 | pcmbuf = outbuf + ch; | 106 | pcmbuf = outbuf + ch; |
108 | for (block_size = 32; block_size > 0 && inbufsize > 0; block_size--, inbufsize--) | 107 | for (block_size = 32; block_size > 0 && inbufsize > 0; block_size--, inbufsize--) |
109 | { | 108 | { |
110 | *pcmbuf = create_pcmdata_size4(ch, *inbuf ) << 13; | 109 | *pcmbuf = create_pcmdata_size4(ch, *inbuf ) << IMA_ADPCM_INC_DEPTH; |
111 | pcmbuf += fmt->channels; | 110 | pcmbuf += fmt->channels; |
112 | *pcmbuf = create_pcmdata_size4(ch, *inbuf >> 4) << 13; | 111 | *pcmbuf = create_pcmdata_size4(ch, *inbuf >> 4) << IMA_ADPCM_INC_DEPTH; |
113 | pcmbuf += fmt->channels; | 112 | pcmbuf += fmt->channels; |
114 | nsamples += 2; | 113 | nsamples += 2; |
115 | inbuf++; | 114 | inbuf++; |