mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/paf: Do not zero allocated tables which are immedeately filled
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
b347384173
commit
631ee3f8e4
|
@ -149,11 +149,11 @@ static int read_header(AVFormatContext *s)
|
||||||
p->frame_blks > INT_MAX / sizeof(uint32_t))
|
p->frame_blks > INT_MAX / sizeof(uint32_t))
|
||||||
return AVERROR_INVALIDDATA;
|
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));
|
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));
|
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));
|
sizeof(*p->blocks_offset_table));
|
||||||
|
|
||||||
p->video_size = p->max_video_blks * p->buffer_size;
|
p->video_size = p->max_video_blks * p->buffer_size;
|
||||||
|
|
Loading…
Reference in New Issue