aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/dovi_meta.c
diff options
context:
space:
mode:
authorvacingfang <vacingfang@tencent.com>2020-04-11 20:54:11 +0800
committerJun Zhao <barryjzhao@tencent.com>2020-04-23 08:05:15 +0800
commit103885d9557fdddbae6392fba9a84a268224caae (patch)
treead387707bbfb8ff56f244ff6d5fb4fd8d9f300fa /libavutil/dovi_meta.c
parent0e1db79e37bb9d5ad1f647bd38f7381e2c5865fb (diff)
downloadffmpeg-103885d9557fdddbae6392fba9a84a268224caae.tar.gz
lavutil: add DOVI related header
add DOVI related struct Signed-off-by: vacingfang <vacingfang@tencent.com>
Diffstat (limited to 'libavutil/dovi_meta.c')
-rw-r--r--libavutil/dovi_meta.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/libavutil/dovi_meta.c b/libavutil/dovi_meta.c
new file mode 100644
index 0000000000..7bd08f6c54
--- /dev/null
+++ b/libavutil/dovi_meta.c
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2020 Jun Zhao<barryjzhao@tencent.com>
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "dovi_meta.h"
+#include "mem.h"
+
+AVDOVIDecoderConfigurationRecord *av_dovi_alloc(size_t *size)
+{
+ AVDOVIDecoderConfigurationRecord *dovi =
+ av_mallocz(sizeof(AVDOVIDecoderConfigurationRecord));
+ if (!dovi)
+ return NULL;
+
+ if (size)
+ *size = sizeof(*dovi);
+
+ return dovi;
+}