aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Zhao <barryjzhao@tencent.com>2022-04-24 19:42:05 +0800
committerJun Zhao <barryjzhao@tencent.com>2022-05-08 10:50:30 +0800
commit93d6d697fa8ba9d44a624187277d7ff028bb1f1c (patch)
tree1cc859ac426c0188c5ab7afb039dffc946f199ac
parent68a7df5e9d737486892b0a924748e1c47f870d97 (diff)
downloadffmpeg-93d6d697fa8ba9d44a624187277d7ff028bb1f1c.tar.gz
lavf/cavsvideodec: Add GuangDian profile support
Enable the Guangdian profile support Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r--libavformat/cavsvideodec.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/cavsvideodec.c b/libavformat/cavsvideodec.c
index 1fa3aa5e92..b89851fbbb 100644
--- a/libavformat/cavsvideodec.c
+++ b/libavformat/cavsvideodec.c
@@ -28,7 +28,8 @@
#define CAVS_UNDEF_START_CODE 0x000001b4
#define CAVS_PIC_PB_START_CODE 0x000001b6
#define CAVS_VIDEO_EDIT_CODE 0x000001b7
-#define CAVS_PROFILE_JIZHUN 0x20
+#define CAVS_PROFILE_JIZHUN 0x20 // AVS1 P2
+#define CAVS_PROFILE_GUANGDIAN 0x48 // AVS1 P16/AVS+
static int cavsvideo_probe(const AVProbeData *p)
{
@@ -50,7 +51,7 @@ static int cavsvideo_probe(const AVProbeData *p)
if (code == CAVS_SEQ_START_CODE) {
seq++;
/* check for the only currently supported profile */
- if (*ptr != CAVS_PROFILE_JIZHUN)
+ if (*ptr != CAVS_PROFILE_JIZHUN && *ptr != CAVS_PROFILE_GUANGDIAN)
return 0;
} else if ((code == CAVS_PIC_I_START_CODE) ||
(code == CAVS_PIC_PB_START_CODE)) {
@@ -66,4 +67,4 @@ static int cavsvideo_probe(const AVProbeData *p)
return 0;
}
-FF_DEF_RAWVIDEO_DEMUXER(cavsvideo, "raw Chinese AVS (Audio Video Standard)", cavsvideo_probe, NULL, AV_CODEC_ID_CAVS)
+FF_DEF_RAWVIDEO_DEMUXER(cavsvideo, "raw Chinese AVS (Audio Video Standard)", cavsvideo_probe, "avs", AV_CODEC_ID_CAVS)