fix zipstreambuffer.seekoff for SEEK_CUR

This commit is contained in:
侯歌 2024-04-09 17:45:16 +08:00
parent 9302f5840b
commit 6dd186ede0

View File

@ -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)) {