Pass JVM to ffmpeg (#8985)

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
Vasyl Gello 2024-08-08 03:53:49 +00:00 committed by GitHub
parent ae16b8975b
commit 2fd53f9825
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -349,6 +349,10 @@ fn init_ndk_context() -> JniResult<()> {
jvm.get_java_vm_pointer() as _,
ctx.as_obj().as_raw() as _,
);
#[cfg(feature = "hwcodec")]
hwcodec::android::ffmpeg_set_java_vm(
jvm.get_java_vm_pointer() as _,
);
}
*lock = true;
return Ok(());