Commit a9029703 authored by Limin Wang's avatar Limin Wang Committed by Karthick J

avformat/dashenc: use av_reallocp_array()

Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
parent 759565cc
......@@ -1731,7 +1731,7 @@ static int add_segment(OutputStream *os, const char *file,
Segment *seg;
if (os->nb_segments >= os->segments_size) {
os->segments_size = (os->segments_size + 1) * 2;
if ((err = av_reallocp(&os->segments, sizeof(*os->segments) *
if ((err = av_reallocp_array(&os->segments, sizeof(*os->segments),
os->segments_size)) < 0) {
os->segments_size = 0;
os->nb_segments = 0;
......
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