Commit 870ec3f6 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/segafilm: Use av_malloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4270a9f5
...@@ -199,7 +199,7 @@ static int film_read_header(AVFormatContext *s) ...@@ -199,7 +199,7 @@ static int film_read_header(AVFormatContext *s)
film->sample_count = AV_RB32(&scratch[12]); film->sample_count = AV_RB32(&scratch[12]);
if(film->sample_count >= UINT_MAX / sizeof(film_sample)) if(film->sample_count >= UINT_MAX / sizeof(film_sample))
return -1; 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) if (!film->sample_table)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment