diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-04-26 17:49:21 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-05-06 23:02:00 +0800 |
commit | 1a944563907b0a8dc1aa9231dc42d8fc8eeb2de4 (patch) | |
tree | fd71729ee407bc98aa866a7784d2a9c70667308c /libavformat | |
parent | 683e421bcff273f2be378d85e15e36fa36b3a8e8 (diff) | |
download | ffmpeg-1a944563907b0a8dc1aa9231dc42d8fc8eeb2de4.tar.gz |
avformat/smoothstreamingenc: use av_reallocp_array()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/smoothstreamingenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index 0e4f531f90..d10d5d1444 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavformat/smoothstreamingenc.c @@ -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; |