[MPlayer-cvslog] r35361 - trunk/libdvdcss/css.c

reimar subversion at mplayerhq.hu
Tue Nov 6 19:17:05 CET 2012


Author: reimar
Date: Tue Nov  6 19:17:04 2012
New Revision: 35361

Log:
Update for upstream r256.

Modified:
   trunk/libdvdcss/css.c

Modified: trunk/libdvdcss/css.c
==============================================================================
--- trunk/libdvdcss/css.c	Tue Nov  6 18:31:23 2012	(r35360)
+++ trunk/libdvdcss/css.c	Tue Nov  6 19:17:04 2012	(r35361)
@@ -1152,8 +1152,7 @@ static int CrackDiscKey( dvdcss_t dvdcss
      */
 
     /* initialize lookup tables for k[1] */
-    K1table = malloc( 65536 * K1TABLEWIDTH );
-    memset( K1table, 0 , 65536 * K1TABLEWIDTH );
+    K1table = calloc( 65536, K1TABLEWIDTH );
     if( K1table == NULL )
     {
         return -1;
@@ -1184,8 +1183,7 @@ static int CrackDiscKey( dvdcss_t dvdcss
     }
 
     /* Initing our Really big table */
-    BigTable = malloc( 16777216 * sizeof(int) );
-    memset( BigTable, 0 , 16777216 * sizeof(int) );
+    BigTable = calloc( 16777216, sizeof(int) );
     if( BigTable == NULL )
     {
         free( K1table );


More information about the MPlayer-cvslog mailing list