Commit 1a944563 authored by Limin Wang's avatar Limin Wang

avformat/smoothstreamingenc: use av_reallocp_array()

Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
parent 683e421b
......@@ -464,7 +464,7 @@ static int add_fragment(OutputStream *os, const char *file, const char *infofile
Fragment *frag;
if (os->nb_fragments >= os->fragments_size) {
os->fragments_size = (os->fragments_size + 1) * 2;
if ((err = av_reallocp(&os->fragments, sizeof(*os->fragments) *
if ((err = av_reallocp_array(&os->fragments, sizeof(*os->fragments),
os->fragments_size)) < 0) {
os->fragments_size = 0;
os->nb_fragments = 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