We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8715fb1 commit 6ee61f4Copy full SHA for 6ee61f4
src/rs-core/transmux/nal_unit_producer.rs
@@ -380,7 +380,9 @@ impl NalUnitProducer {
380
let mut emu_idx = 0;
381
(0..new_len)
382
.map(|_| {
383
- if source_idx == emulation_prevention_bytes_positions[emu_idx] {
+ if emu_idx < emulation_prevention_bytes_positions.len()
384
+ && source_idx == emulation_prevention_bytes_positions[emu_idx]
385
+ {
386
// Skip this byte
387
source_idx += 1;
388
emu_idx += 1;
0 commit comments