Commit e7874f13 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptative: fix use after free (cid #1346995)

parent b796d9b8
......@@ -467,7 +467,8 @@ void SegmentInformation::setSegmentTemplate(MediaSegmentTemplate *templ)
mediaSegmentTemplate->mergeWith(templ, 0);
delete templ;
}
mediaSegmentTemplate = templ;
else
mediaSegmentTemplate = templ;
}
static void insertIntoSegment(std::vector<ISegment *> &seglist, size_t start,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment