From: Steve Lhomme Date: Sun, 16 Oct 2022 06:58:58 +0000 (+0200) Subject: use GetEndPosition() to seek to the end of a Virtual element X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1f8eebf27da3df5cbcdd6dcba84cee7e6c454db;p=libmatroska use GetEndPosition() to seek to the end of a Virtual element --- diff --git a/src/KaxBlock.cpp b/src/KaxBlock.cpp index 90fb4f3..e72f584 100644 --- a/src/KaxBlock.cpp +++ b/src/KaxBlock.cpp @@ -1048,7 +1048,7 @@ void KaxBlockBlob::SetBlockGroup( KaxBlockGroup &BlockRef ) filepos_t KaxBlockVirtual::ReadData(IOCallback & input, ScopeMode /* ReadFully */) { - input.setFilePointer(SizePosition + CodedSizeLength(Size, SizeLength, bSizeIsFinite) + Size, seek_beginning); + input.setFilePointer(GetEndPosition(), seek_beginning); return GetSize(); }