diff options
Diffstat (limited to 'apps/codecs/demac/libdemac/predictor.c')
-rw-r--r-- | apps/codecs/demac/libdemac/predictor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/demac/libdemac/predictor.c b/apps/codecs/demac/libdemac/predictor.c index f0e3b65556..1a9b48e0ca 100644 --- a/apps/codecs/demac/libdemac/predictor.c +++ b/apps/codecs/demac/libdemac/predictor.c | |||
@@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA | |||
27 | 27 | ||
28 | #include "parser.h" | 28 | #include "parser.h" |
29 | #include "predictor.h" | 29 | #include "predictor.h" |
30 | #include "demac_iram.h" | 30 | #include "demac_config.h" |
31 | 31 | ||
32 | /* Return 0 if x is zero, -1 if x is positive, 1 if x is negative */ | 32 | /* Return 0 if x is zero, -1 if x is positive, 1 if x is negative */ |
33 | #define SIGN(x) (x) ? (((x) > 0) ? -1 : 1) : 0 | 33 | #define SIGN(x) (x) ? (((x) > 0) ? -1 : 1) : 0 |
@@ -196,7 +196,7 @@ int ICODE_ATTR_DEMAC predictor_decode_stereo(struct predictor_t* p, | |||
196 | p->buf++; | 196 | p->buf++; |
197 | 197 | ||
198 | /* Have we filled the history buffer? */ | 198 | /* Have we filled the history buffer? */ |
199 | if (p->buf == p->historybuffer + HISTORY_SIZE) { | 199 | if (p->buf == p->historybuffer + PREDICTOR_HISTORY_SIZE) { |
200 | memmove(p->historybuffer, p->buf, | 200 | memmove(p->historybuffer, p->buf, |
201 | PREDICTOR_SIZE * sizeof(int32_t)); | 201 | PREDICTOR_SIZE * sizeof(int32_t)); |
202 | p->buf = p->historybuffer; | 202 | p->buf = p->historybuffer; |
@@ -250,7 +250,7 @@ int ICODE_ATTR_DEMAC predictor_decode_mono(struct predictor_t* p, | |||
250 | p->buf++; | 250 | p->buf++; |
251 | 251 | ||
252 | /* Have we filled the history buffer? */ | 252 | /* Have we filled the history buffer? */ |
253 | if (p->buf == p->historybuffer + HISTORY_SIZE) { | 253 | if (p->buf == p->historybuffer + PREDICTOR_HISTORY_SIZE) { |
254 | memmove(p->historybuffer, p->buf, | 254 | memmove(p->historybuffer, p->buf, |
255 | PREDICTOR_SIZE * sizeof(int32_t)); | 255 | PREDICTOR_SIZE * sizeof(int32_t)); |
256 | p->buf = p->historybuffer; | 256 | p->buf = p->historybuffer; |