Browse Source

avformat/dashenc: use av_reallocp_array()

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
tags/n4.3
Limin Wang Karthick J 5 years ago
parent
commit
a9029703bb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/dashenc.c

+ 1
- 1
libavformat/dashenc.c View File

@@ -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;


Loading…
Cancel
Save