diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 02:41:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 02:41:05 +0200 |
commit | da621ffbcf19bddd9d92bfbfd780051bae11038e (patch) | |
tree | 3a5202329bb6a3a05cf6cf7fed560db929400ed2 /libavcodec/wma.c | |
parent | 658f5d1f63c941cacc4e8e2b9d32fc7da57c081e (diff) | |
download | ffmpeg-da621ffbcf19bddd9d92bfbfd780051bae11038e.tar.gz |
avcodec/wma: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wma.c')
-rw-r--r-- | libavcodec/wma.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/wma.c b/libavcodec/wma.c index b6d6351acf..f2519f543b 100644 --- a/libavcodec/wma.c +++ b/libavcodec/wma.c @@ -45,10 +45,10 @@ static av_cold void init_coef_vlc(VLC *vlc, uint16_t **prun_table, init_vlc(vlc, VLCBITS, n, table_bits, 1, 1, table_codes, 4, 4, 0); - run_table = av_malloc(n * sizeof(uint16_t)); - level_table = av_malloc(n * sizeof(uint16_t)); - flevel_table= av_malloc(n * sizeof(*flevel_table)); - int_table = av_malloc(n * sizeof(uint16_t)); + run_table = av_malloc_array(n, sizeof(uint16_t)); + level_table = av_malloc_array(n, sizeof(uint16_t)); + flevel_table= av_malloc_array(n, sizeof(*flevel_table)); + int_table = av_malloc_array(n, sizeof(uint16_t)); i = 2; level = 1; k = 0; |