[vlc-commits] demux:mkv: improve Cues loading dramatically
Steve Lhomme
git at videolan.org
Tue Feb 13 09:22:25 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Feb 13 09:16:29 2018 +0100| [419dcfcdd7639cdaf2bb3932a4eac5085ee04a2c] | committer: Steve Lhomme
demux:mkv: improve Cues loading dramatically
By reading the data we ignore, rather than skipping over the data.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=419dcfcdd7639cdaf2bb3932a4eac5085ee04a2c
---
modules/demux/mkv/matroska_segment.cpp | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 86c07b9900..9f6d43edda 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -166,21 +166,25 @@ void matroska_segment_c::LoadCues( KaxCues *cues )
VLC_UNUSED( kcbn_ptr );
}
#if LIBMATROSKA_VERSION >= 0x010401
- else if( MKV_IS_ID( el, KaxCueRelativePosition ) )
+ else if( MKV_CHECKED_PTR_DECL( ignored, KaxCueRelativePosition, el ) )
{
// IGNORE
+ ignored->ReadData( es.I_O() );
}
- else if( MKV_IS_ID( el, KaxCueBlockNumber ) )
+ else if( MKV_CHECKED_PTR_DECL( ignored, KaxCueBlockNumber, el ) )
{
// IGNORE
+ ignored->ReadData( es.I_O() );
}
- else if( MKV_IS_ID( el, KaxCueReference ) )
+ else if( MKV_CHECKED_PTR_DECL( ignored, KaxCueReference, el ) )
{
// IGNORE
+ ignored->ReadData( es.I_O(), SCOPE_ALL_DATA );
}
- else if( MKV_IS_ID( el, KaxCueDuration ) )
+ else if( MKV_CHECKED_PTR_DECL( ignored, KaxCueDuration, el ) )
{
/* For future use */
+ ignored->ReadData( es.I_O() );
}
#endif
else
More information about the vlc-commits
mailing list