From 6dd186ede08f5363556dc8c2ef03248a924ecc4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=AF=E6=AD=8C?= Date: Tue, 9 Apr 2024 17:45:16 +0800 Subject: [PATCH] fix zipstreambuffer.seekoff for SEEK_CUR --- src/gui/image-decoders/framesequence.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/image-decoders/framesequence.cc b/src/gui/image-decoders/framesequence.cc index 5373896e..112eaa6c 100755 --- a/src/gui/image-decoders/framesequence.cc +++ b/src/gui/image-decoders/framesequence.cc @@ -34,7 +34,7 @@ const FrameSequence::RegistryEntry* FrameSequence::Registry::find(std::istream* const off_t headerSize = mHeaderBytesRequired; char header[headerSize]; stream->read(header, headerSize); - stream->seekg(0); + stream->seekg(-headerSize,std::ios::cur); while (registry) { if (headerSize >= registry->mImpl.requiredHeaderBytes && registry->mImpl.checkHeader(header, headerSize)) {