[MN-dev] [mndiff]: r195 - trunk/noe/rs.c

michael subversion at mplayerhq.hu
Tue Jul 13 11:31:47 CEST 2010


Author: michael
Date: Tue Jul 13 11:31:46 2010
New Revision: 195

Log:
get rid of VLAs in rs.c

Modified:
   trunk/noe/rs.c

Modified: trunk/noe/rs.c
==============================================================================
--- trunk/noe/rs.c	Tue Jul 13 11:31:45 2010	(r194)
+++ trunk/noe/rs.c	Tue Jul 13 11:31:46 2010	(r195)
@@ -56,7 +56,7 @@ void EXT(rsEncode)(GFF4Element *data, GF
     int i;
     const int decimate= SHIFT - codeBits;
     const int dataCount= ((SIZE - 1)>>decimate) - parityCount;
-    int parityLocations[parityCount];
+    int parityLocations[SIZE]; //[parityCount]
 
     for(i=0; i<parityCount; i++)
         parityLocations[i]= (dataCount + i)<<decimate;
@@ -371,7 +371,7 @@ int EXT(rsDecode)(GFF4Element *data, int
     GFF4Element omega1[SIZE - 1 + 1];
     GFF4Element *omegas[2]={omega0, omega1}; //FIXME clean this shit up
     GFF4Element *errorLocator, *omega, *syn, *psi;
-    int error[parityCount>>1];
+    int error[SIZE>>1]; //[parityCount>>1]
 
     if(erasureCount > parityCount)
         return -1;


More information about the Mndiff-dev mailing list