Commit f484b261 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>
(cherry picked from commit 75fe29de25652698275aeaf9e6e831d24683659d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 01858309
......@@ -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