From 798a4f3533cc63be2b313797bd4be5d53bda8fb9 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Mon, 31 Oct 2005 20:33:27 +0000 Subject: 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 --- apps/codecs/libfaad/sbr_hfgen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/codecs/libfaad/sbr_hfgen.c') 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); -- cgit v1.2.3