diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-12 16:52:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-12 17:14:20 +0200 |
commit | 870ec3f69e04e04d1efd33bd7e8cc439de1f766e (patch) | |
tree | a87a202119eefa64f42bb33abcbe1db4cfbc0b41 /libavformat | |
parent | 4270a9f547bd272fa55fadd855e92ea81e5d8c1a (diff) | |
download | ffmpeg-870ec3f69e04e04d1efd33bd7e8cc439de1f766e.tar.gz |
avformat/segafilm: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/segafilm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c index f8b3eee3c0..44fa683a71 100644 --- a/libavformat/segafilm.c +++ b/libavformat/segafilm.c @@ -199,7 +199,7 @@ static int film_read_header(AVFormatContext *s) film->sample_count = AV_RB32(&scratch[12]); if(film->sample_count >= UINT_MAX / sizeof(film_sample)) return -1; - film->sample_table = av_malloc(film->sample_count * sizeof(film_sample)); + film->sample_table = av_malloc_array(film->sample_count, sizeof(film_sample)); if (!film->sample_table) return AVERROR(ENOMEM); |