[vlc-devel] [PATCH 03/11] demux:mkv: use the more generic EbmlMaster::GetDataStart() method for each parser
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jan 2 16:38:10 CET 2018
That resulted in invalid casts in many cases.
---
modules/demux/mkv/Ebml_parser.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mkv/Ebml_parser.cpp b/modules/demux/mkv/Ebml_parser.cpp
index 139d93f312..00b738c578 100644
--- a/modules/demux/mkv/Ebml_parser.cpp
+++ b/modules/demux/mkv/Ebml_parser.cpp
@@ -119,7 +119,7 @@ void EbmlParser::Reset( demux_t *p_demux )
this->p_demux = p_demux;
mi_user_level = mi_level = 1;
// a little faster and cleaner
- m_es->I_O().setFilePointer( static_cast<KaxSegment*>(m_el[0])->GetGlobalPosition(0) );
+ m_es->I_O().setFilePointer( static_cast<EbmlMaster*>(m_el[0])->GetDataStart() );
}
--
2.14.2
More information about the vlc-devel
mailing list