Mercurial > mplayer.hg
changeset 35267:e057379d9360
Update for upstream r256.
author | reimar |
---|---|
date | Tue, 06 Nov 2012 18:17:04 +0000 |
parents | ceb148e1fe31 |
children | f16646c59e33 |
files | libdvdcss/css.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libdvdcss/css.c Tue Nov 06 17:31:23 2012 +0000 +++ b/libdvdcss/css.c Tue Nov 06 18:17:04 2012 +0000 @@ -1152,8 +1152,7 @@ */ /* 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 @@ } /* 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 );