![Zhiming Wang](/assets/img/avatar_default.png)
C enums allow duplicate variants, but Rust enums don't. At some point bindgen switched to generating duplicate variants as associated constants instead of module-level constants, so use SomeEnum::* broke. Here we switch to associated constants in the native API as well.
This is a fork of the ffmpeg crate by meh., compatible with FFmpeg major version 4 (tested against 4.0.2). FFmpeg4 code is guarded by the ffmpeg4
feature, enabled by the default. Disable ffmpeg4
to compile against FFmpeg 3.x (tested against 3.4.4). Earlier versions of FFmpeg are not officially supported. See my command line tool metadata
's Cargo.toml
for example usage when supporting both major versions of FFmpeg.
Languages
Rust
100%