[FFmpeg-cvslog] avformat/dashenc: use av_reallocp_array()

Limin Wang git at videolan.org
Wed Apr 29 09:36:32 EEST 2020


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Sun Apr 26 17:49:20 2020 +0800| [a9029703bb1a8272fa7e2fd33393c273e5ad7ff6] | committer: Karthick J

avformat/dashenc: use av_reallocp_array()

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a9029703bb1a8272fa7e2fd33393c273e5ad7ff6
---

 libavformat/dashenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list