fix: clamp file offsets to file size
This commit is contained in:
parent
d30f086151
commit
98dde15d59
|
@ -145,7 +145,7 @@ impl MpdEncoder {
|
|||
};
|
||||
|
||||
let mip_size = if next == 0 {
|
||||
size as u32 - offset
|
||||
size as u32 - offset.min(size as u32)
|
||||
} else {
|
||||
next - offset
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue