summaryrefslogtreecommitdiff
path: root/apps/codecs/libfaad/sbr_hfgen.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-10-31 20:33:27 +0000
committerDave Chapman <dave@dchapman.com>2005-10-31 20:33:27 +0000
commit798a4f3533cc63be2b313797bd4be5d53bda8fb9 (patch)
tree0e2b8bdeff50b3d0a1cbe73c591f97ef73179b65 /apps/codecs/libfaad/sbr_hfgen.c
parent65de1cc6af31f547bd36d320f09cbcc6e6975421 (diff)
Changes to make libfaad compile in Rockbox. Also remove compiler warnings, use some IRAM (IRAM usage needs reviewing) and drastically reduce the stack usage
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7700 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libfaad/sbr_hfgen.c')
-rw-r--r--apps/codecs/libfaad/sbr_hfgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libfaad/sbr_hfgen.c b/apps/codecs/libfaad/sbr_hfgen.c
index 5f306c43f3..4991839218 100644
--- a/apps/codecs/libfaad/sbr_hfgen.c
+++ b/apps/codecs/libfaad/sbr_hfgen.c
@@ -628,14 +628,14 @@ static void patch_construction(sbr_info *sbr)
do
{
- uint8_t j = k + 1;
+ int8_t j = k + 1;
do
{
j--;
-
sb = sbr->f_master[j];
odd = (sb - 2 + sbr->k0) % 2;
+
} while (sb > (sbr->k0 - 1 + msb - odd));
sbr->patchNoSubbands[sbr->noPatches] = max(sb - usb, 0);