Skip to content

Commit d949d8f

Browse files
committed
fix: dvd regressions
1 parent 81fdecd commit d949d8f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/CHANGES.TXT

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
1.0 (to be released)
22
-----------------
3+
- Fix: Regression failures on DVD files
34
- Fix: Segmentation faults on XDS files
45
- Fix: Clippy Errors Based on Rust 1.88
56
- IMPROVEMENT: Refactor and optimize Dockerfile

src/rust/src/libccxr_exports/bitstream.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ unsafe fn copy_bitstream_c_to_rust(value: *mut bitstream) -> BitStreamRust<'stat
7474
let i_offset = (*value)._i_pos.offset_from((*value).pos);
7575
i_pos_in_slice = i_offset.max(0) as usize;
7676
}
77+
} else if (*value).pos == (*value).end {
78+
slice = std::slice::from_raw_parts((*value).pos, 1);
7779
}
7880
}
7981

0 commit comments

Comments
 (0)