aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/iamf.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-01-19 13:33:28 +0100
committerAnton Khirnov <anton@khirnov.net>2024-01-20 10:34:48 +0100
commit08bebeb1bed3feee99d30cd6066d3466291dc8ed (patch)
tree89bcdd9a892d3a837b1a09d3ab0bde48557c4049 /libavutil/iamf.c
parenta8bc79c3fd96a8287e241e6913ad5cf4d4838f5c (diff)
downloadffmpeg-08bebeb1bed3feee99d30cd6066d3466291dc8ed.tar.gz
Revert "all: Don't set AVClass.item_name to its default value"
Some callers assume that item_name is always set, so this may be considered an API break. This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.
Diffstat (limited to 'libavutil/iamf.c')
-rw-r--r--libavutil/iamf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavutil/iamf.c b/libavutil/iamf.c
index e648f6df2b..62b6051049 100644
--- a/libavutil/iamf.c
+++ b/libavutil/iamf.c
@@ -75,6 +75,7 @@ static const AVOption mix_gain_options[] = {
static const AVClass mix_gain_class = {
.class_name = "AVIAMFSubmixElement",
+ .item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
.option = mix_gain_options,
};
@@ -89,6 +90,7 @@ static const AVOption demixing_info_options[] = {
static const AVClass demixing_info_class = {
.class_name = "AVIAMFDemixingInfo",
+ .item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
.option = demixing_info_options,
};
@@ -102,6 +104,7 @@ static const AVOption recon_gain_options[] = {
static const AVClass recon_gain_class = {
.class_name = "AVIAMFReconGain",
+ .item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
.option = recon_gain_options,
};
@@ -142,6 +145,7 @@ static const AVClass *param_definition_child_iterate(void **opaque)
static const AVClass param_definition_class = {
.class_name = "AVIAMFParamDefinition",
+ .item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
.option = param_definition_options,
.child_class_iterate = param_definition_child_iterate,
@@ -270,6 +274,7 @@ static const AVOption layer_options[] = {
static const AVClass layer_class = {
.class_name = "AVIAMFLayer",
+ .item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
.option = layer_options,
};
@@ -303,6 +308,7 @@ static const AVClass *audio_element_child_iterate(void **opaque)
static const AVClass audio_element_class = {
.class_name = "AVIAMFAudioElement",
+ .item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
.option = audio_element_options,
.child_class_iterate = audio_element_child_iterate,
@@ -389,6 +395,7 @@ static const AVClass *submix_element_child_iterate(void **opaque)
static const AVClass element_class = {
.class_name = "AVIAMFSubmixElement",
+ .item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
.option = submix_element_options,
.child_next = submix_element_child_next,
@@ -418,6 +425,7 @@ static const AVOption submix_layout_options[] = {
static const AVClass layout_class = {
.class_name = "AVIAMFSubmixLayout",
+ .item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
.option = submix_layout_options,
};
@@ -466,6 +474,7 @@ static const AVClass *submix_presentation_child_iterate(void **opaque)
static const AVClass submix_class = {
.class_name = "AVIAMFSubmix",
+ .item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
.option = submix_presentation_options,
.child_next = submix_presentation_child_next,
@@ -497,6 +506,7 @@ static const AVClass *mix_presentation_child_iterate(void **opaque)
static const AVClass mix_presentation_class = {
.class_name = "AVIAMFMixPresentation",
+ .item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
.option = mix_presentation_options,
.child_class_iterate = mix_presentation_child_iterate,