[FFmpeg-soc] [soc]: r2141 - aac/aac.c

andoma subversion at mplayerhq.hu
Tue Apr 22 13:58:54 CEST 2008


Author: andoma
Date: Tue Apr 22 13:58:54 2008
New Revision: 2141

Log:
Use uint8_t for the M/S mask and use memset() for mode 2.



Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Tue Apr 22 13:58:54 2008
@@ -219,7 +219,7 @@ typedef struct {
  */
 typedef struct {
     int present;
-    int mask[8][64];
+    uint8_t mask[8][64];
 } ms_struct;
 
 /**
@@ -1214,8 +1214,7 @@ static int decode_ms_data(AACContext * a
     } else if (ms->present == 2) {
         int g, i;
         for (g = 0; g < cpe->ch[0].ics.num_window_groups; g++)
-            for (i = 0; i < cpe->ch[0].ics.max_sfb; i++)
-                ms->mask[g][i] = 1;// = 0xFFFFFFFFFFFFFFFFULL;
+            memset(ms->mask[g], 1, cpe->ch[0].ics.max_sfb);
     }
     return 0;
 }



More information about the FFmpeg-soc mailing list