mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/segafilm: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4270a9f547
commit
870ec3f69e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user