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:
Diffstat (limited to 'libavformat/segafilm.c')
-rw-r--r--libavformat/segafilm.c2
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);