mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-06-14 03:32:00 +08:00
10 lines
268 B
Rust
10 lines
268 B
Rust
use crate::config::RtspCodec;
|
|
use crate::video::codec::VideoCodecType;
|
|
|
|
pub(crate) fn rtsp_codec_to_video(codec: RtspCodec) -> VideoCodecType {
|
|
match codec {
|
|
RtspCodec::H264 => VideoCodecType::H264,
|
|
RtspCodec::H265 => VideoCodecType::H265,
|
|
}
|
|
}
|