ffmpeg-the-third 5.0.0+ffmpeg-8.1

Safe FFmpeg wrapper (FFmpeg 5+ compatible fork of the ffmpeg crate)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use ffmpeg_the_third::dictionary::*;

fn main() {}

pub fn drop_owned_while_ref_alive() {
    let dict = Dictionary::new();
    let dict_ref = dict.as_ref();
    drop(dict);
    println!("len: {}", dict_ref.len());
}

pub fn drop_owned_while_mut_alive() {
    let mut dict = Dictionary::new();
    let dict_mut = dict.as_mut();
    drop(dict);
    println!("len: {}", dict_mut.len());
}