diff --git a/Cargo.toml b/Cargo.toml
index 7c03fc6..65d07c4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -42,6 +42,7 @@ windows = { version = "0.54.0", features = [
"Media_MediaProperties",
"Media_Core",
"Media_Transcoding",
+ "Security_Cryptography",
] }
# Mutex optimization
diff --git a/src/encoder.rs b/src/encoder.rs
index c55e236..0b18b49 100644
--- a/src/encoder.rs
+++ b/src/encoder.rs
@@ -1,6 +1,7 @@
use std::{
fs::{self, File},
path::Path,
+ slice,
sync::{
atomic::{self, AtomicBool},
mpsc, Arc,
@@ -27,6 +28,7 @@ use windows::{
},
Transcoding::MediaTranscoder,
},
+ Security::Cryptography::CryptographicBuffer,
Storage::{
FileAccessMode, StorageFile,
Streams::{
@@ -143,7 +145,7 @@ pub enum VideoEncoderError {
#[error("Windows API Error: {0}")]
WindowsError(#[from] windows::core::Error),
#[error("Frame send error")]
- FrameSendError(#[from] mpsc::SendError