Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
henkelmax committed Mar 20, 2023
1 parent b13f35f commit 68cdbf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/src/opus/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ fn get_encoder(env: &mut JNIEnv, obj: &JObject) -> Option<&'static mut EncoderWr
}

fn create_pointer(encoder: EncoderWrapper) -> jlong {
let decoder = Box::new(encoder);
let raw = Box::into_raw(decoder);
let encoder = Box::new(encoder);
let raw = Box::into_raw(encoder);
return raw as jlong;
}

Expand Down

0 comments on commit 68cdbf6

Please sign in to comment.