Commit 306544c8 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: smooth: fix memleak (cid #1346971)

parent 99d31901
......@@ -53,8 +53,11 @@ bool IndexReader::parseIndex(block_t *p_block, BaseRepresentation *rep)
uuid_box = uuid_box->p_next;
return false;
SegmentTimeline *timelineadd = new (std::nothrow) SegmentTimeline(rep->inheritTimescale());
if (uuid_box && timelineadd)
if (timelineadd)
const MP4_Box_data_tfrf_t *p_tfrfdata = uuid_box->data.p_tfrf;
for ( uint8_t i=0; i<p_tfrfdata->i_fragment_count; i++ )
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