changeset 5392:1f48e25e8d1e libavcodec

only use sized data types when necessary
author jbr
date Tue, 24 Jul 2007 01:43:47 +0000
parents 6c1633a8dbc3
children c001b06c0ac5
files ac3dec.c
diffstat 1 files changed, 27 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/ac3dec.c	Tue Jul 24 01:35:25 2007 +0000
+++ b/ac3dec.c	Tue Jul 24 01:43:47 2007 +0000
@@ -88,35 +88,35 @@
 #define AC3_OUTPUT_LFEON        0x10
 
 typedef struct {
-    uint8_t  acmod;
-    uint8_t  cmixlev;
-    uint8_t  surmixlev;
-    uint8_t  dsurmod;
+    int acmod;
+    int cmixlev;
+    int surmixlev;
+    int dsurmod;
 
-    uint8_t  blksw[AC3_MAX_CHANNELS];
-    uint8_t  dithflag[AC3_MAX_CHANNELS];
-    uint8_t  cplinu;
-    uint8_t  chincpl[AC3_MAX_CHANNELS];
-    uint8_t  phsflginu;
-    uint8_t  cplbegf;
-    uint8_t  cplendf;
-    uint8_t  cplcoe;
+    int blksw[AC3_MAX_CHANNELS];
+    int dithflag[AC3_MAX_CHANNELS];
+    int cplinu;
+    int chincpl[AC3_MAX_CHANNELS];
+    int phsflginu;
+    int cplbegf;
+    int cplendf;
+    int cplcoe;
     uint32_t cplbndstrc;
-    uint8_t  rematstr;
-    uint8_t  rematflg[AC3_MAX_CHANNELS];
-    uint8_t  cplexpstr;
-    uint8_t  lfeexpstr;
-    uint8_t  chexpstr[5];
-    uint8_t  csnroffst;
-    uint8_t  cplfsnroffst;
-    uint8_t  cplfgaincod;
-    uint8_t  fsnroffst[5];
-    uint8_t  fgaincod[5];
-    uint8_t  lfefsnroffst;
-    uint8_t  lfefgaincod;
-    uint8_t  cpldeltbae;
-    uint8_t  deltbae[5];
-    uint8_t  cpldeltnseg;
+    int rematstr;
+    int rematflg[AC3_MAX_CHANNELS];
+    int cplexpstr;
+    int lfeexpstr;
+    int chexpstr[5];
+    int csnroffst;
+    int cplfsnroffst;
+    int cplfgaincod;
+    int fsnroffst[5];
+    int fgaincod[5];
+    int lfefsnroffst;
+    int lfefgaincod;
+    int cpldeltbae;
+    int deltbae[5];
+    int cpldeltnseg;
     uint8_t  cpldeltoffst[8];
     uint8_t  cpldeltlen[8];
     uint8_t  cpldeltba[8];