diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-12 17:50:19 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-12 18:14:20 +0300 |
commit | 4270a9f547bd272fa55fadd855e92ea81e5d8c1a (patch) | |
tree | 2f0393112fdbbd7f3e71058d033ef6b0118ad812 /libavformat/sierravmd.c | |
parent | d2fc702ace340bb22290bc575a0194082dd00627 (diff) |
avformat/sierravmd: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/sierravmd.c')
-rw-r--r-- | libavformat/sierravmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c index 8bdd973080..1ededc7145 100644 --- a/libavformat/sierravmd.c +++ b/libavformat/sierravmd.c @@ -183,7 +183,7 @@ static int vmd_read_header(AVFormatContext *s) return -1; } raw_frame_table = av_malloc(raw_frame_table_size); - vmd->frame_table = av_malloc((vmd->frame_count * vmd->frames_per_block + sound_buffers) * sizeof(vmd_frame)); + vmd->frame_table = av_malloc_array(vmd->frame_count * vmd->frames_per_block + sound_buffers, sizeof(vmd_frame)); if (!raw_frame_table || !vmd->frame_table) { ret = AVERROR(ENOMEM); goto error; |