Skip to content

Commit fcfefe2

Browse files
yotamofeklu-zero
authored andcommitted
Also build avfilter and swresample! 🤓
1 parent d34ebaf commit fcfefe2

File tree

7 files changed

+10
-2
lines changed

7 files changed

+10
-2
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
44
[![Actions Status](https://github.com/rust-av/libav-rs/workflows/libav/badge.svg)](https://github.com/rust-av/libav-rs/actions)
55

6-
It is a simple [binding][1] and safe abstraction over [libav][2] avcodec, avformat and avresample.
6+
It is a simple [binding][1] and safe abstraction over [libav][2] avcodec, avformat, avfilter, avresample, and swresample.
77

88
## Building
99

‎libav-sys/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
src/avformat.rs
22
src/avcodec.rs
33
src/avresample.rs
4+
src/avfilter.rs
5+
src/swresample.rs
46
target/

‎libav-sys/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ metadeps = "1.1"
1515
[package.metadata.pkg-config]
1616
libavcodec = "58"
1717
libavformat = "58"
18+
libavfilter = "7.40.101"
1819
libavresample = "4.0.0"
20+
libswresample = "3.3.100"
1921

2022
[dependencies]

‎libav-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn common_builder() -> bindgen::Builder {
2929
fn main() {
3030
let libs = metadeps::probe().unwrap();
3131

32-
for e in ["avcodec", "avformat", "avresample"].iter() {
32+
for e in ["avcodec", "avfilter", "avformat", "avresample", "swresample"].iter() {
3333
let headers = libs
3434
.get(&format!("lib{}", e))
3535
.unwrap()

‎libav-sys/data/libavfilter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include <libavfilter/avfilter.h>

‎libav-sys/data/libswresample.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include <libswresample/swresample.h>

‎libav-sys/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
pub mod avcodec;
55
pub mod avformat;
6+
pub mod avfilter;
67
pub mod avresample;
8+
pub mod swresample;
79

810
#[cfg(test)]
911
mod tests {

0 commit comments

Comments
 (0)