From 49ab6667b5684430b50d34b915069ebf4be53080 Mon Sep 17 00:00:00 2001 From: quietvoid <39477805+quietvoid@users.noreply.github.com> Date: Tue, 28 May 2024 21:43:17 -0400 Subject: [PATCH] Fix const qualifiers --- hdr10plus/src/capi.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hdr10plus/src/capi.rs b/hdr10plus/src/capi.rs index 1ade48f..49e4d68 100644 --- a/hdr10plus/src/capi.rs +++ b/hdr10plus/src/capi.rs @@ -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)); } @@ -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() {