avcodec/codec_id: add Animated WebP codec ID and descriptor

Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
This commit is contained in:
Ramiro Polla
2026-04-29 22:20:38 +02:00
parent 5ad8c67e6c
commit 2ca634f5db
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -2009,6 +2009,14 @@ static const AVCodecDescriptor codec_descriptors[] = {
AV_CODEC_PROP_LOSSLESS,
.mime_types= MT("image/jxs"),
},
{
.id = AV_CODEC_ID_WEBP_ANIM,
.type = AVMEDIA_TYPE_VIDEO,
.name = "webp_anim",
.long_name = NULL_IF_CONFIG_SMALL("Animated WebP"),
.props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_LOSSLESS,
.mime_types= MT("image/webp"),
},
/* various PCM "codecs" */
{
+1
View File
@@ -332,6 +332,7 @@ enum AVCodecID {
AV_CODEC_ID_APV,
AV_CODEC_ID_PRORES_RAW,
AV_CODEC_ID_JPEGXS,
AV_CODEC_ID_WEBP_ANIM,
/* various PCM "codecs" */
AV_CODEC_ID_FIRST_AUDIO = 0x10000, ///< A dummy id pointing at the start of audio codecs