Skip to content

Commit

Permalink
add code path for unimplemented hwaccel enum variants
Browse files Browse the repository at this point in the history
  • Loading branch information
gerwin3 committed Apr 16, 2024
1 parent bf1ce77 commit 73eade8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hwaccel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ impl HardwareAccelerationDeviceType {
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_OPENCL => Some(Self::OpenCl),
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_MEDIACODEC => Some(Self::MeiaCodec),
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_VULKAN => Some(Self::Vulkan),
// ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_D3D12VA => Self::D3D12Va,
ffmpeg::ffi::AVHWDeviceType::AV_HWDEVICE_TYPE_NONE => None,
// FIXME: Find a way to handle the new variants in ffmpeg 7 without breaking backwards
// compatibility...
#[allow(unreachable_patterns)]
_ => unimplemented!(),
}
}
}
Expand Down

0 comments on commit 73eade8

Please sign in to comment.