mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-02 12:17:46 +08:00
fix zipstreambuffer.seekoff for SEEK_CUR
This commit is contained in:
parent
9302f5840b
commit
6dd186ede0
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user