Skip to content

Commit da03c1e

Browse files
authored
Fix ARM64 build: c_char initialization (#1756)
1 parent ebd8252 commit da03c1e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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: ARM64/aarch64 build failure due to c_char type mismatch in nal.rs
34
- Fix: HardSubX OCR on Rust
45
- Removed the Share Module
56
- Fix: Regression failures on DVD files

src/rust/src/avc/nal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ pub unsafe fn slice_header(
596596
pic_order_cnt_lsb, (*dec_ctx.timing).current_tref,
597597
current_index, (*dec_ctx.avc_ctx).currref, (*dec_ctx.avc_ctx).lastmaxidx, (*dec_ctx.avc_ctx).maxtref);
598598

599-
let mut buf = [c_char::from(0i8); 64];
599+
let mut buf = [0 as c_char; 64];
600600
debug!(
601601
msg_type = DebugMessageFlag::TIME;
602602
" sync_pts:{} ({:8})",

0 commit comments

Comments
 (0)