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 75fe29de)
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 ) ...@@ -88,10 +88,13 @@ EbmlElement* EbmlParser::UnGet( uint64 i_block_pos, uint64 i_cluster_pos )
{ {
// seek to the previous Cluster // seek to the previous Cluster
m_es->I_O().setFilePointer( i_cluster_pos, seek_beginning ); m_es->I_O().setFilePointer( i_cluster_pos, seek_beginning );
mi_level--; while(mi_level > 1)
mi_user_level--; {
delete m_el[mi_level]; mi_level--;
m_el[mi_level] = NULL; mi_user_level--;
delete m_el[mi_level];
m_el[mi_level] = NULL;
}
return 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