We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26ea7f7 commit bc80b85Copy full SHA for bc80b85
README.md
@@ -32,6 +32,10 @@ av_dump_format(
32
33
For the uninitiated, the std includes lots of convenient ffi related utilities. E.g. using `std::slice::from_raw_parts`:
34
```rust
35
+use ffmpeg_dev::sys::{
36
+ AVMediaType_AVMEDIA_TYPE_VIDEO as AVMEDIA_TYPE_VIDEO,
37
+ AVMediaType_AVMEDIA_TYPE_AUDIO as AVMEDIA_TYPE_AUDIO,
38
+};
39
let ifmt_ctx: AVFormatContext = *ifmt_ctx;
40
let nb_streams = (*ifmt_ctx).nb_streams as usize;
41
0 commit comments