diff options
author | James Almer <jamrial@gmail.com> | 2024-01-23 18:39:24 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-01-23 18:39:52 -0300 |
commit | eee3b7e2fb0664b889e58c03f76e19ef23e4d1d8 (patch) | |
tree | 247aaffef8290c255b69bb954042362caa4a69ef /libavformat/mov.c | |
parent | dfbbd11a4b2ce947a5041afecbc081c46ce5a186 (diff) | |
download | ffmpeg-eee3b7e2fb0664b889e58c03f76e19ef23e4d1d8.tar.gz |
avformat/mov: zero initialize the index ranges buffer
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 5cb907e120..4cffd6c7db 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -3860,7 +3860,7 @@ static void mov_fix_index(MOVContext *mov, AVStream *st) } // allocate the index ranges array - msc->index_ranges = av_malloc((msc->elst_count + 1) * sizeof(msc->index_ranges[0])); + msc->index_ranges = av_calloc((msc->elst_count + 1), sizeof(msc->index_ranges[0])); if (!msc->index_ranges) { av_log(mov->fc, AV_LOG_ERROR, "Cannot allocate index ranges buffer\n"); return; |