Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-08 18:18:29 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-04-08 18:18:29 +0400
commite20e854ca056867027d4374ef1931a97d866c499 (patch)
treecea4f9817e93a6c452f2cdc7c86c593f3c9b30d7 /libavcodec/bitstream.c
parent33c9bb943b671db988d1ebf0aa22df2856f842ce (diff)
vcodec/bitstream: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/bitstream.c')
-rw-r--r--libavcodec/bitstream.c2
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);
}