# HG changeset patch # User michael # Date 1173831596 0 # Node ID 36c100bb7758f18eca01c59402c377cb3d9176aa # Parent 5b6f5e7ed3a0f76a2ece3eba29e5a654be68164f kill another 2 av_mallocz_static() diff -r 5b6f5e7ed3a0 -r 36c100bb7758 mpegaudiodec.c --- a/mpegaudiodec.c Tue Mar 13 23:30:28 2007 +0000 +++ b/mpegaudiodec.c Wed Mar 14 00:19:56 2007 +0000 @@ -144,8 +144,8 @@ static uint16_t band_index_long[9][23]; /* XXX: free when all decoders are closed */ #define TABLE_4_3_SIZE (8191 + 16)*4 -static int8_t *table_4_3_exp; -static uint32_t *table_4_3_value; +static int8_t table_4_3_exp[TABLE_4_3_SIZE]; +static uint32_t table_4_3_value[TABLE_4_3_SIZE]; static uint32_t exp_table[512]; static uint32_t expval_table[512][16]; /* intensity stereo coef table */ @@ -384,12 +384,6 @@ } /* compute n ^ (4/3) and store it in mantissa/exp format */ - table_4_3_exp= av_mallocz_static(TABLE_4_3_SIZE * sizeof(table_4_3_exp[0])); - if(!table_4_3_exp) - return -1; - table_4_3_value= av_mallocz_static(TABLE_4_3_SIZE * sizeof(table_4_3_value[0])); - if(!table_4_3_value) - return -1; int_pow_init(); for(i=1;i