[MPlayer-cvslog] r28866 - trunk/mp3lib/layer3.c

reimar subversion at mplayerhq.hu
Sat Mar 7 10:14:45 CET 2009


Author: reimar
Date: Sat Mar  7 10:14:45 2009
New Revision: 28866

Log:
Reduce size of needlessly large mp3lib bandInfoStruct

Modified:
   trunk/mp3lib/layer3.c

Modified: trunk/mp3lib/layer3.c
==============================================================================
--- trunk/mp3lib/layer3.c	Sat Mar  7 10:08:02 2009	(r28865)
+++ trunk/mp3lib/layer3.c	Sat Mar  7 10:14:45 2009	(r28866)
@@ -44,10 +44,10 @@ static real cos9[3],cos18[3];
 #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 @@ static void init_layer3(int down_sample_
    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;



More information about the MPlayer-cvslog mailing list