Closed lantq1979 closed 2 months ago
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"] }
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( writec as ), //writec as | ^^^^^^^^^^^^ invalid cast