diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-08 16:18:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-08 16:18:29 +0200 |
commit | e20e854ca056867027d4374ef1931a97d866c499 (patch) | |
tree | cea4f9817e93a6c452f2cdc7c86c593f3c9b30d7 | |
parent | 33c9bb943b671db988d1ebf0aa22df2856f842ce (diff) | |
download | ffmpeg-e20e854ca056867027d4374ef1931a97d866c499.tar.gz |
vcodec/bitstream: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/bitstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index e907322871..5cb8631755 100644 --- a/libavcodec/bitstream.c +++ b/libavcodec/bitstream.c @@ -293,7 +293,7 @@ int ff_init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes, vlc->table_allocated = 0; vlc->table_size = 0; - buf = av_malloc((nb_codes + 1) * sizeof(VLCcode)); + buf = av_malloc_array((nb_codes + 1), sizeof(VLCcode)); if (!buf) return AVERROR(ENOMEM); } |