aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Zhao <barryjzhao@tencent.com>2020-04-11 21:07:15 +0800
committerJun Zhao <barryjzhao@tencent.com>2020-04-23 08:05:06 +0800
commit0e1db79e37bb9d5ad1f647bd38f7381e2c5865fb (patch)
tree776a4501bbfce093a6577898f2e27d0388efbfdb
parentf163d30de2090a7275f1fb8ad69258576f12c1a2 (diff)
downloadffmpeg-0e1db79e37bb9d5ad1f647bd38f7381e2c5865fb.tar.gz
lavc: add a new sidedata type for DOVI
add a new sidedata type for DOVI. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r--libavcodec/avpacket.c1
-rw-r--r--libavcodec/packet.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index ad020eef13..1b53451359 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -396,6 +396,7 @@ const char *av_packet_side_data_name(enum AVPacketSideDataType type)
case AV_PKT_DATA_ENCRYPTION_INFO: return "Encryption info";
case AV_PKT_DATA_AFD: return "Active Format Description data";
case AV_PKT_DATA_ICC_PROFILE: return "ICC Profile";
+ case AV_PKT_DATA_DOVI_CONF: return "DOVI configuration record";
}
return NULL;
}
diff --git a/libavcodec/packet.h b/libavcodec/packet.h
index e53abe6fd0..41485f4527 100644
--- a/libavcodec/packet.h
+++ b/libavcodec/packet.h
@@ -274,6 +274,15 @@ enum AVPacketSideDataType {
AV_PKT_DATA_ICC_PROFILE,
/**
+ * DOVI configuration
+ * ref:
+ * dolby-vision-bitstreams-within-the-iso-base-media-file-format-v2.1.2, section 2.2
+ * dolby-vision-bitstreams-in-mpeg-2-transport-stream-multiplex-v1.2, section 3.3
+ * Tags are stored in struct AVDOVIDecoderConfigurationRecord.
+ */
+ AV_PKT_DATA_DOVI_CONF,
+
+ /**
* The number of side data types.
* This is not part of the public API/ABI in the sense that it may
* change when new side data types are added.