diff --git a/src/ssn/extractFileStream.ts b/src/ssn/extractFileStream.ts index 2a5443b..ff6d7e8 100644 --- a/src/ssn/extractFileStream.ts +++ b/src/ssn/extractFileStream.ts @@ -21,8 +21,8 @@ export default async function extractFileStream(file: ISsnFileEntry, inputStream const encryptionHeader = curStream.read(12); if (encryptionHeader === null) { //need to wait until data is ready for reading - await waitReadableLength(curStream, 30); - curStream.read(30); + await waitReadableLength(curStream, 12); + curStream.read(12); } }