![Tadas Barzdžius](/assets/img/avatar_default.png)
* Add avformat_close_input call to clean up AVFormantContext * Format code with rustfmt * Fix clippy lint double_parens * Fix clippy lint deref_addrof * Fix clippy lint identity_conversion * Fix clippy lint match_ref_pats * Fix clippy lint cast_lossless * Fix clippy lint cmp_null * Fix clippy lint clone_on_ref_ptr * Fix clippy lint map_clone * Fix clippy lint needless_borrow * Fix clippy lint needless_pass_by_value * Fix clippy lints for examples * Fix clippy lint unused_io_amount * Fix clippy lint new_without_default * Ignore inline_always clippy lint * Add vim temp files to .gitignore
13 lines
287 B
Rust
13 lines
287 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
for (name, _value) in env::vars() {
|
|
if name.starts_with("DEP_FFMPEG_") {
|
|
println!(
|
|
r#"cargo:rustc-cfg=feature="{}""#,
|
|
name["DEP_FFMPEG_".len()..name.len()].to_lowercase()
|
|
);
|
|
}
|
|
}
|
|
}
|