Skip to content

Commit 9fe2dab

Browse files
cfsmp3claude
andcommitted
style: Remove unused mut from current_index variable
Fix clippy warning: variable does not need to be mutable. The current_index variable is only assigned once during initialization and never modified afterward. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c8f6b56 commit 9fe2dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust/src/avc/nal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ pub unsafe fn slice_header(
523523
anchor_hdcc(dec_ctx, (*dec_ctx.avc_ctx).currref);
524524
}
525525

526-
let mut current_index = if ccx_options.usepicorder != 0 {
526+
let current_index = if ccx_options.usepicorder != 0 {
527527
// Use pic_order_cnt_lsb
528528
// Wrap (add max index value) current_index if needed.
529529
if (*dec_ctx.avc_ctx).currref as i64 - pic_order_cnt_lsb > (maxrefcnt / 2) as i64 {

0 commit comments

Comments
 (0)