diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-03-14 00:19:56 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-03-14 00:19:56 +0000 |
commit | 9608652dc15ae83a36df8ec8962dd0cce24d87ca (patch) | |
tree | 279a8fcccacc7b87a077de95b1419a095da2cb62 /libavcodec/mpegaudiodec.c | |
parent | 2df6e978722d701edd241084633d6a03cded3cff (diff) | |
download | ffmpeg-streaming-9608652dc15ae83a36df8ec8962dd0cce24d87ca.zip ffmpeg-streaming-9608652dc15ae83a36df8ec8962dd0cce24d87ca.tar.gz |
kill another 2 av_mallocz_static()
Originally committed as revision 8396 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r-- | libavcodec/mpegaudiodec.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 5cd251e..d64c9f6 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -144,8 +144,8 @@ static VLC huff_quad_vlc[2]; 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 @@ static int decode_init(AVCodecContext * avctx) } /* 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<TABLE_4_3_SIZE;i++) { |