Skip to content

Commit b2d60fd

Browse files
committed
cbits
1 parent 0ed2ea0 commit b2d60fd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cbits/defs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,7 @@ int SYS_AVERROR_PROTOCOL_NOT_FOUND() {
6262
}
6363
int SYS_AVERROR_STREAM_NOT_FOUND() {
6464
return AVERROR_STREAM_NOT_FOUND;
65+
}
66+
size_t SYS_FFMIN(size_t a, size_t b) {
67+
return FFMIN(a, b);
6568
}

src/extra/defs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ extern "C" {
4545
pub fn averror_protocol_not_found() -> c_int;
4646
#[link_name = "SYS_AVERROR_STREAM_NOT_FOUND"]
4747
pub fn averror_stream_not_found() -> c_int;
48+
#[link_name = "SYS_FFMIN"]
49+
pub fn sys_ffmin(a: usize, b: usize) -> usize;
4850
}

0 commit comments

Comments
 (0)