mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-24 08:14:34 +01:00
media-converter: Always set write offset past header
This commit is contained in:
parent
1ae6c80f3e
commit
d02b5dc9ce
1 changed files with 3 additions and 0 deletions
|
|
@ -244,6 +244,9 @@ impl StreamArchive {
|
|||
version > FOSSILIZE_VERSION {
|
||||
return Err(Error::CorruptDatabase);
|
||||
}
|
||||
|
||||
self.write_pos = MAGIC_LEN_BYTES as u64;
|
||||
|
||||
loop {
|
||||
let mut name_and_header = [0u8; PAYLOAD_NAME_LEN_BYTES + PAYLOAD_HEADER_LEN_BYTES];
|
||||
let res = self.file.read_exact(&mut name_and_header);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue