# HG changeset patch # User reimar # Date 1236417285 0 # Node ID cc27f3667e2857316e08e99ffa7a6c3c2372e0f4 # Parent 79d82aac91a3c66301bb3661bbfdbb06d82384dc Reduce size of needlessly large mp3lib bandInfoStruct diff -r 79d82aac91a3 -r cc27f3667e28 mp3lib/layer3.c --- 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;