]> granicus.if.org Git - libmatroska/commitdiff
use GetEndPosition() to seek to the end of a Virtual element
authorSteve Lhomme <slhomme@matroska.org>
Sun, 16 Oct 2022 06:58:58 +0000 (08:58 +0200)
committerSteve Lhomme <slhomme@matroska.org>
Sun, 16 Oct 2022 06:58:58 +0000 (08:58 +0200)
src/KaxBlock.cpp

index 90fb4f3d67e21acd3b40f44129e50fe83bc91177..e72f5847f46bc44a0d02f4486cbd2f22a3e8d8ed 100644 (file)
@@ -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();
 }