summaryrefslogtreecommitdiff
path: root/libavformat/paf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-01-20 00:32:22 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2021-01-21 20:21:32 +0100
commit631ee3f8e43f95abb4af9d4c83f844ce23f25f26 (patch)
tree7e8404b002e6961ae6f5c0d61a3e529b9c8edef9 /libavformat/paf.c
parentb3473841731eebf5c32077f931334820316f16c6 (diff)
avformat/paf: Do not zero allocated tables which are immedeately filled
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/paf.c')
-rw-r--r--libavformat/paf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/paf.c b/libavformat/paf.c
index 9587111643..6183dc1115 100644
--- a/libavformat/paf.c
+++ b/libavformat/paf.c
@@ -149,11 +149,11 @@ static int read_header(AVFormatContext *s)
p->frame_blks > INT_MAX / sizeof(uint32_t))
return AVERROR_INVALIDDATA;
- p->blocks_count_table = av_mallocz(p->nb_frames *
+ p->blocks_count_table = av_malloc_array(p->nb_frames,
sizeof(*p->blocks_count_table));
- p->frames_offset_table = av_mallocz(p->nb_frames *
+ p->frames_offset_table = av_malloc_array(p->nb_frames,
sizeof(*p->frames_offset_table));
- p->blocks_offset_table = av_mallocz(p->frame_blks *
+ p->blocks_offset_table = av_malloc_array(p->frame_blks,
sizeof(*p->blocks_offset_table));
p->video_size = p->max_video_blks * p->buffer_size;