From 1b14167861bb5bf4c692f8fc661b33e26a706183 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 16 Nov 2008 17:49:37 +0000 Subject: Centralise compile-time configuration. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19121 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/demac/libdemac/predictor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/codecs/demac/libdemac/predictor.c') 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 #include "parser.h" #include "predictor.h" -#include "demac_iram.h" +#include "demac_config.h" /* Return 0 if x is zero, -1 if x is positive, 1 if x is negative */ #define SIGN(x) (x) ? (((x) > 0) ? -1 : 1) : 0 @@ -196,7 +196,7 @@ int ICODE_ATTR_DEMAC predictor_decode_stereo(struct predictor_t* p, p->buf++; /* Have we filled the history buffer? */ - if (p->buf == p->historybuffer + HISTORY_SIZE) { + if (p->buf == p->historybuffer + PREDICTOR_HISTORY_SIZE) { memmove(p->historybuffer, p->buf, PREDICTOR_SIZE * sizeof(int32_t)); p->buf = p->historybuffer; @@ -250,7 +250,7 @@ int ICODE_ATTR_DEMAC predictor_decode_mono(struct predictor_t* p, p->buf++; /* Have we filled the history buffer? */ - if (p->buf == p->historybuffer + HISTORY_SIZE) { + if (p->buf == p->historybuffer + PREDICTOR_HISTORY_SIZE) { memmove(p->historybuffer, p->buf, PREDICTOR_SIZE * sizeof(int32_t)); p->buf = p->historybuffer; -- cgit v1.2.3