Commit 39e7d2b0 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

demux:mkv: delete the Dummy we don't want after we have skipped it in the reader

Should fix #18001 again
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent afdbb279
......@@ -274,10 +274,10 @@ EbmlElement *EbmlParser::Get( int n_call )
return NULL;
delete m_el[mi_level];
m_el[mi_level] = NULL;
m_el[mi_level - 1]->SkipData( *m_es, EBML_CONTEXT(m_el[mi_level - 1]) );
return Get();
EbmlElement *unwanted_dummy = m_el[mi_level];
EbmlElement *upper_dummy = Get();
delete unwanted_dummy;
return upper_dummy;
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