diff --git a/Cargo.lock b/Cargo.lock index 63bf36f..121317b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3700,7 +3700,7 @@ dependencies = [ [[package]] name = "scythe" -version = "0.2.12" +version = "0.2.13" dependencies = [ "ashpd", "cpal", diff --git a/Cargo.toml b/Cargo.toml index 37a9f42..739df59 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "scythe" -version = "0.2.12" +version = "0.2.13" edition = "2024" [[bin]] diff --git a/src/encoder.rs b/src/encoder.rs index dd3f521..adab45c 100644 --- a/src/encoder.rs +++ b/src/encoder.rs @@ -149,7 +149,8 @@ impl VaapiEncoder { width as i32, height as i32, AVPixelFormat::AV_PIX_FMT_NV12, - (SwsFlags::SWS_BICUBIC as libc::c_int) | (SwsFlags::SWS_ACCURATE_RND as libc::c_int), + // SWS_BICUBIC (4) | SWS_ACCURATE_RND (0x40000) + 4 | 0x40000, ptr::null_mut(), ptr::null_mut(), ptr::null_mut(),