Skip to content

Commit 0bd4217

Browse files
committed
Make AVERROR more easier to use
1 parent e0ea2b0 commit 0bd4217

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/avutil/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ use super::common::MKTAG;
33
use crate::ffi::av_strerror;
44

55
#[allow(non_snake_case)]
6-
pub const fn AVERROR(e: c_int) -> c_int {
7-
-e
6+
pub const fn AVERROR(e: u32) -> c_int {
7+
-(e as c_int)
88
}
99

1010
#[allow(non_snake_case)]
11-
pub const fn AVUNERROR(e: c_int) -> c_int {
12-
-e
11+
pub const fn AVUNERROR(e: u32) -> c_int {
12+
-(e as c_int)
1313
}
1414

1515
macro_rules! FFERRTAG {

0 commit comments

Comments
 (0)