Add FFmpeg 6.1 support (#14)

Co-authored-by: Rafie <simulping@protonmail.com>
This commit is contained in:
FreezyLemon
2024-04-02 14:47:59 +02:00
committed by GitHub
parent 1af767b881
commit 30aabf9033
8 changed files with 56 additions and 38 deletions

View File

@ -647,6 +647,17 @@ pub enum Id {
VNULL,
#[cfg(feature = "ffmpeg_6_0")]
ANULL,
#[cfg(feature = "ffmpeg_6_1")]
PDV,
#[cfg(feature = "ffmpeg_6_1")]
EVC,
#[cfg(feature = "ffmpeg_6_1")]
RTV1,
#[cfg(feature = "ffmpeg_6_1")]
VMIX,
#[cfg(feature = "ffmpeg_6_1")]
AC4,
}
impl Id {
@ -1944,6 +1955,16 @@ impl From<Id> for AVCodecID {
Id::VNULL => AV_CODEC_ID_VNULL,
#[cfg(feature = "ffmpeg_6_0")]
Id::ANULL => AV_CODEC_ID_ANULL,
#[cfg(feature = "ffmpeg_6_1")]
Id::PDV => AV_CODEC_ID_PDV,
#[cfg(feature = "ffmpeg_6_1")]
Id::EVC => AV_CODEC_ID_EVC,
#[cfg(feature = "ffmpeg_6_1")]
Id::RTV1 => AV_CODEC_ID_RTV1,
#[cfg(feature = "ffmpeg_6_1")]
Id::VMIX => AV_CODEC_ID_VMIX,
#[cfg(feature = "ffmpeg_6_1")]
Id::AC4 => AV_CODEC_ID_AC4,
}
}
}