Commit 75fe29de authored by Denis Charmet's avatar Denis Charmet Committed by Jean-Baptiste Kempf

Fix a crash in MKV when seeking to the last block of a cluster

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 08754102
......@@ -88,10 +88,13 @@ EbmlElement* EbmlParser::UnGet( uint64 i_block_pos, uint64 i_cluster_pos )
{
// seek to the previous Cluster
m_es->I_O().setFilePointer( i_cluster_pos, seek_beginning );
while(mi_level > 1)
{
mi_level--;
mi_user_level--;
delete m_el[mi_level];
m_el[mi_level] = NULL;
}
return NULL;
}
}
......
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