We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error[E0605]: non-primitive cast: unsafe extern "C" fn(*mut c_void, *const u8, i32) -> i32 {write_c} as unsafe extern "C" fn(*mut c_void, *mut u8, i32) -> i32
unsafe extern "C" fn(*mut c_void, *const u8, i32) -> i32 {write_c}
unsafe extern "C" fn(*mut c_void, *mut u8, i32) -> i32
rsmpeg-0.15.0+ffmpeg.7.0\src\avformat\avio.rs:125:51 | 125 | write_packet.is_some().then_some( write_c as _), //write_c as _ | ^^^^^^^^^^^^ invalid cast
The text was updated successfully, but these errors were encountered:
You can check the comment above: https://github.com/larksuite/rsmpeg/blob/master/src/avformat/avio.rs#L124
It seems that you are using FFmpeg 6.*. Please import rsmpeg like this:
rsmpeg = { version = "0.15.0", default-features = false, features = ["ffmpeg6"] }
Sorry, something went wrong.
No branches or pull requests
error[E0605]: non-primitive cast:
unsafe extern "C" fn(*mut c_void, *const u8, i32) -> i32 {write_c}
asunsafe extern "C" fn(*mut c_void, *mut u8, i32) -> i32
rsmpeg-0.15.0+ffmpeg.7.0\src\avformat\avio.rs:125:51
|
125 | write_packet.is_some().then_some( write_c as _), //write_c as _
| ^^^^^^^^^^^^ invalid cast
The text was updated successfully, but these errors were encountered: