[FFmpeg-cvslog] avformat/dashdec: Don't overwrite and leak old initialization fragments
Andreas Rheinhardt
git at videolan.org
Mon Sep 21 05:59:56 EEST 2020
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sat Sep 19 01:04:32 2020 +0200| [17963a6ad7e41312312b32a4ce590abb9805f799] | committer: Andreas Rheinhardt
avformat/dashdec: Don't overwrite and leak old initialization fragments
Reviewed-by: Steven Liu <lq at chinaffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=17963a6ad7e41312312b32a4ce590abb9805f799
---
libavformat/dashdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index d84da16dbd..3f51e079cf 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -614,6 +614,7 @@ static int parse_manifest_segmenturlnode(AVFormatContext *s, struct representati
initialization_val = xmlGetProp(fragmenturl_node, "sourceURL");
range_val = xmlGetProp(fragmenturl_node, "range");
if (initialization_val || range_val) {
+ free_fragment(&rep->init_section);
rep->init_section = get_Fragment(range_val);
if (!rep->init_section) {
xmlFree(initialization_val);
More information about the ffmpeg-cvslog
mailing list