diff --git a/src/backend/vaapi/encoder.rs b/src/backend/vaapi/encoder.rs index 3d90c5b2..b33c3071 100644 --- a/src/backend/vaapi/encoder.rs +++ b/src/backend/vaapi/encoder.rs @@ -39,6 +39,12 @@ const INITIAL_SCRATCH_POOL_SIZE: usize = 16; /// scratch frames. const MAX_SCRATCH_POOL_SIZE: usize = INITIAL_SCRATCH_POOL_SIZE * 4; +impl From for StatelessBackendError { + fn from(value: libva::VaError) -> Self { + Self::Other(value.into()) + } +} + pub struct Reconstructed(PooledVaSurface<()>); impl Reconstructed { diff --git a/src/encoder/stateless/h264/vaapi.rs b/src/encoder/stateless/h264/vaapi.rs index 35513a42..f1c8cc40 100644 --- a/src/encoder/stateless/h264/vaapi.rs +++ b/src/encoder/stateless/h264/vaapi.rs @@ -415,12 +415,6 @@ where } } -impl From for StatelessBackendError { - fn from(value: libva::VaError) -> Self { - Self::Other(value.into()) - } -} - impl StatelessEncoder> where M: SurfaceMemoryDescriptor,