mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-03-15 15:00:19 +03:00
media-converter: Always set write offset past header
This commit is contained in:
parent
f984ac1fd4
commit
f3c3f79e35
@ -244,6 +244,9 @@ impl StreamArchive {
|
|||||||
version > FOSSILIZE_VERSION {
|
version > FOSSILIZE_VERSION {
|
||||||
return Err(Error::CorruptDatabase);
|
return Err(Error::CorruptDatabase);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.write_pos = MAGIC_LEN_BYTES as u64;
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let mut name_and_header = [0u8; PAYLOAD_NAME_LEN_BYTES + PAYLOAD_HEADER_LEN_BYTES];
|
let mut name_and_header = [0u8; PAYLOAD_NAME_LEN_BYTES + PAYLOAD_HEADER_LEN_BYTES];
|
||||||
let res = self.file.read_exact(&mut name_and_header);
|
let res = self.file.read_exact(&mut name_and_header);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user