changeset 28831:cc27f3667e28

Reduce size of needlessly large mp3lib bandInfoStruct
author reimar
date Sat, 07 Mar 2009 09:14:45 +0000
parents 79d82aac91a3
children 9ab5447ba67a
files mp3lib/layer3.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mp3lib/layer3.c	Sat Mar 07 09:08:02 2009 +0000
+++ b/mp3lib/layer3.c	Sat Mar 07 09:14:45 2009 +0000
@@ -44,10 +44,10 @@
 #endif
 
 struct bandInfoStruct {
-  int longIdx[23];
-  int longDiff[22];
-  int shortIdx[14];
-  int shortDiff[13];
+  uint16_t longIdx[23];
+  uint8_t  longDiff[22];
+  uint16_t shortIdx[14];
+  uint8_t  shortDiff[13];
 };
 
 static int longLimit[9][23];
@@ -216,7 +216,7 @@
    const struct bandInfoStruct *bi = &bandInfo[j];
    int *mp;
    int cb,lwin;
-   const int *bdf;
+   const uint8_t *bdf;
 
    mp = map[j][0] = mapbuf0[j];
    bdf = bi->longDiff;