[FFmpeg-cvslog] avformat/hls.c: Properly free prev_segments dynarray after playlist parsing
vkot
git at videolan.org
Wed Dec 26 13:22:28 EET 2018
ffmpeg | branch: master | vkot <valery.kot at 4cinsights.com> | Mon Dec 24 10:19:55 2018 +0100| [3ee735901e08213a46a5f7339ca86c43524d6994] | committer: Steven Liu
avformat/hls.c: Properly free prev_segments dynarray after playlist parsing
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3ee735901e08213a46a5f7339ca86c43524d6994
---
libavformat/hls.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 8ad08baaed..63e1abe789 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -931,6 +931,7 @@ static int parse_playlist(HLSContext *c, const char *url,
prev_start_seq_no, pls->start_seq_no);
}
free_segment_dynarray(prev_segments, prev_n_segments);
+ av_freep(&prev_segments);
}
if (pls)
pls->last_load_time = av_gettime_relative();
More information about the ffmpeg-cvslog
mailing list