summaryrefslogtreecommitdiff
path: root/libavcodec/wmadec.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-01-23 23:03:09 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-01-23 23:03:09 +0000
commit8e1e6f31c142aeb27d3dd7df539c47b35d7eb903 (patch)
treea1e73532f1654c52016b9ccaf233aa4add95dfd3 /libavcodec/wmadec.c
parent47e2a6e6c521a007f78b23ed554a1b81defef936 (diff)
use av_malloc() functions - added av_strdup and av_realloc()
Originally committed as revision 1505 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r--libavcodec/wmadec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index a80e030aa5..5305e1c5d7 100644
--- a/libavcodec/wmadec.c
+++ b/libavcodec/wmadec.c
@@ -92,7 +92,7 @@ typedef struct WMADecodeContext {
int16_t coefs1[MAX_CHANNELS][BLOCK_MAX_SIZE];
float coefs[MAX_CHANNELS][BLOCK_MAX_SIZE] __attribute__((aligned(16)));
MDCTContext mdct_ctx[BLOCK_NB_SIZES];
- float *windows[BLOCK_NB_SIZES] __attribute__((aligned(16)));
+ float *windows[BLOCK_NB_SIZES];
FFTSample mdct_tmp[BLOCK_MAX_SIZE] __attribute__((aligned(16))); /* temporary storage for imdct */
/* output buffer for one frame and the last for IMDCT windowing */
float frame_out[MAX_CHANNELS][BLOCK_MAX_SIZE * 2] __attribute__((aligned(16)));
@@ -212,8 +212,8 @@ static void init_coef_vlc(VLC *vlc,
init_vlc(vlc, 9, n, table_bits, 1, 1, table_codes, 4, 4);
- run_table = malloc(n * sizeof(uint16_t));
- level_table = malloc(n * sizeof(uint16_t));
+ run_table = av_malloc(n * sizeof(uint16_t));
+ level_table = av_malloc(n * sizeof(uint16_t));
p = levels_table;
i = 2;
level = 1;