Skip to content

Commit

Permalink
fn rav1d_data_ref: Make dst arg a ref.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkysen committed Dec 20, 2023
1 parent 46c8447 commit 2700e49
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ pub(crate) unsafe fn rav1d_data_wrap_user_data_internal(
Ok(())
}

pub(crate) unsafe fn rav1d_data_ref(dst: *mut Rav1dData, src: *const Rav1dData) {
if validate_input!(!dst.is_null()).is_err() {
return;
}
pub(crate) unsafe fn rav1d_data_ref(dst: &mut Rav1dData, src: *const Rav1dData) {
if validate_input!((*dst).data.is_null()).is_err() {
return;
}
Expand Down

0 comments on commit 2700e49

Please sign in to comment.