fix: clamp file offsets to file size
This commit is contained in:
parent
7e1201a0d0
commit
40c296224a
|
@ -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