Skip to content

Commit

Permalink
Fix const qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
quietvoid committed May 29, 2024
1 parent cfa5c36 commit 49ab666
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hdr10plus/src/capi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub unsafe extern "C" fn hdr10plus_rs_json_get_error(ptr: *const JsonOpaque) ->
///
/// Free the Hdr10PlusJsonOpaque
#[no_mangle]
pub unsafe extern "C" fn hdr10plus_rs_json_free(ptr: *mut JsonOpaque) {
pub unsafe extern "C" fn hdr10plus_rs_json_free(ptr: *const JsonOpaque) {
if !ptr.is_null() {
drop(Box::from_raw(ptr));
}
Expand All @@ -93,7 +93,7 @@ pub unsafe extern "C" fn hdr10plus_rs_json_free(ptr: *mut JsonOpaque) {
/// If an error occurs in the writing, returns null
#[no_mangle]
pub unsafe extern "C" fn hdr10plus_rs_write_av1_metadata_obu_t35_complete(
ptr: *mut JsonOpaque,
ptr: *const JsonOpaque,
frame_number: size_t,
) -> *const Data {
if ptr.is_null() {
Expand Down

0 comments on commit 49ab666

Please sign in to comment.