diff --git a/hdr10plus/src/capi.rs b/hdr10plus/src/capi.rs index 49e4d68..b7174cc 100644 --- a/hdr10plus/src/capi.rs +++ b/hdr10plus/src/capi.rs @@ -93,7 +93,7 @@ pub unsafe extern "C" fn hdr10plus_rs_json_free(ptr: *const 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: *const JsonOpaque, + ptr: *mut JsonOpaque, frame_number: size_t, ) -> *const Data { if ptr.is_null() {