diff --git a/src/libhelix-aac/fft.c b/src/libhelix-aac/fft.c index 7f24a2f..0fc934c 100644 --- a/src/libhelix-aac/fft.c +++ b/src/libhelix-aac/fft.c @@ -77,8 +77,8 @@ static const int nfftlog2Tab[NUM_FFT_SIZES] PROGMEM = {6, 9}; part0 = inout; part1 = inout + (1 << nbits); - while ((a = *tab++) != 0) { - b = *tab++; + while ((a = pgm_read_byte(tab++)) != 0) { + b = pgm_read_byte(tab++); swapcplx(part0[4*a+0], part0[4*b+0]); /* 0xxx0 <-> 0yyy0 */ swapcplx(part0[4*a+2], part1[4*b+0]); /* 0xxx1 <-> 1yyy0 */ @@ -88,7 +88,7 @@ static const int nfftlog2Tab[NUM_FFT_SIZES] PROGMEM = {6, 9}; do { swapcplx(part0[4*a+2], part1[4*a+0]); /* 0xxx1 <-> 1xxx0 */ - } while ((a = *tab++) != 0); + } while ((a = pgm_read_byte(tab++)) != 0); } diff --git a/src/libhelix-aac/trigtabs.c b/src/libhelix-aac/trigtabs.c index 6c8c6f9..4301290 100644 --- a/src/libhelix-aac/trigtabs.c +++ b/src/libhelix-aac/trigtabs.c @@ -625,7 +625,7 @@ const int kbdWindow[128 + 1024] PROGMEM = { const int bitrevtabOffset[NUM_IMDCT_SIZES] PROGMEM = {0, 17}; -const unsigned char bitrevtab[17 + 129] = { +const unsigned char bitrevtab[17 + 129] PROGMEM = { /* nfft = 64 */ 0x01, 0x08, 0x02, 0x04, 0x03, 0x0c, 0x05, 0x0a, 0x07, 0x0e, 0x0b, 0x0d, 0x00, 0x06, 0x09, 0x0f, 0x00,