summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhwren <hwrenx@126.com>2020-10-05 20:07:01 +0800
committerhwren <hwrenx@126.com>2020-10-05 23:10:13 +0800
commit8e74d98a29a31c47836248d35cdb198e75a6fc37 (patch)
tree7b193aeeaf4133dc7350aa4b494227d6a5cc24bb
parent0b6541368d60fc52b16504a2be753635eceac3df (diff)
lavc: add AVS3 codec id and desc
Signed-off-by: hbj <hanbj@pku.edu.cn> Signed-off-by: hwren <hwrenx@126.com>
-rw-r--r--libavcodec/codec_desc.c7
-rw-r--r--libavcodec/codec_id.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c
index 1246dc2b96..4c81cb8982 100644
--- a/libavcodec/codec_desc.c
+++ b/libavcodec/codec_desc.c
@@ -1413,6 +1413,13 @@ static const AVCodecDescriptor codec_descriptors[] = {
.props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS,
},
{
+ .id = AV_CODEC_ID_AVS3,
+ .type = AVMEDIA_TYPE_VIDEO,
+ .name = "avs3",
+ .long_name = NULL_IF_CONFIG_SMALL("AVS3-P2/IEEE1857.10"),
+ .props = AV_CODEC_PROP_LOSSY,
+ },
+ {
.id = AV_CODEC_ID_Y41P,
.type = AVMEDIA_TYPE_VIDEO,
.name = "y41p",
diff --git a/libavcodec/codec_id.h b/libavcodec/codec_id.h
index 21444f9ce3..08c2bbfefb 100644
--- a/libavcodec/codec_id.h
+++ b/libavcodec/codec_id.h
@@ -242,6 +242,7 @@ enum AVCodecID {
AV_CODEC_ID_RSCC,
AV_CODEC_ID_AVS2,
AV_CODEC_ID_PGX,
+ AV_CODEC_ID_AVS3,
AV_CODEC_ID_Y41P = 0x8000,
AV_CODEC_ID_AVRP,