Commit a215cc39 authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: fix a problem in UnGet()

parent f5b485bd
...@@ -3335,7 +3335,7 @@ EbmlElement* EbmlParser::UnGet( uint64 i_block_pos, uint64 i_cluster_pos ) ...@@ -3335,7 +3335,7 @@ EbmlElement* EbmlParser::UnGet( uint64 i_block_pos, uint64 i_cluster_pos )
if ( m_el[1]->GetElementPosition() == i_cluster_pos ) if ( m_el[1]->GetElementPosition() == i_cluster_pos )
{ {
m_es->I_O().setFilePointer( i_block_pos, seek_beginning ); m_es->I_O().setFilePointer( i_block_pos, seek_beginning );
return (EbmlMaster*) m_el[mi_level-1]; return (EbmlMaster*) m_el[1];
} }
else else
{ {
......
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