From 870ec3f69e04e04d1efd33bd7e8cc439de1f766e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 12 Apr 2015 16:52:00 +0200 Subject: [PATCH] avformat/segafilm: Use av_malloc_array() Signed-off-by: Michael Niedermayer --- libavformat/segafilm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);