Commit e20e854c authored by Michael Niedermayer's avatar Michael Niedermayer

vcodec/bitstream: use av_malloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 33c9bb94
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment