diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-04-26 12:49:20 +0300 |
---|---|---|
committer | Karthick J <kjeyapal@akamai.com> | 2020-04-29 09:28:03 +0300 |
commit | a9029703bb1a8272fa7e2fd33393c273e5ad7ff6 (patch) | |
tree | 2755aa872ae52bc546e506e8be39cd6f9f7dba12 /libavformat | |
parent | 759565ccf8ce0a14b536f870b36405dcef791b1b (diff) |
avformat/dashenc: use av_reallocp_array()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/dashenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 4885a6beda..a75fcc10d8 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -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; |