summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-12-22 14:47:15 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-12-22 15:12:33 +0100
commit0c6203c97a99f69dbaa6e4011d48c331e1111f5e (patch)
tree68cce77911b40e5d74047a5d02b5377571a8d3d9 /libavutil
parent46775e64f8b34f5e4d09df8458654f9f50626c4b (diff)
all: Don't set AVClass.item_name to its default value
Unnecessary since acf63d5350adeae551d412db699f8ca03f7e76b9; also avoids relocations. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/cpu.c1
-rw-r--r--libavutil/eval.c1
-rw-r--r--libavutil/file.c1
-rw-r--r--libavutil/file_open.c1
-rw-r--r--libavutil/hwcontext.c2
-rw-r--r--libavutil/iamf.c10
-rw-r--r--libavutil/imgutils.c1
-rw-r--r--libavutil/opt.h2
8 files changed, 0 insertions, 19 deletions
diff --git a/libavutil/cpu.c b/libavutil/cpu.c
index 48d195168c..374b53d3bb 100644
--- a/libavutil/cpu.c
+++ b/libavutil/cpu.c
@@ -197,7 +197,6 @@ int av_parse_cpu_caps(unsigned *flags, const char *s)
};
static const AVClass class = {
.class_name = "cpuflags",
- .item_name = av_default_item_name,
.option = cpuflags_opts,
.version = LIBAVUTIL_VERSION_INT,
};
diff --git a/libavutil/eval.c b/libavutil/eval.c
index d0bada9b31..bad9e4ecb8 100644
--- a/libavutil/eval.c
+++ b/libavutil/eval.c
@@ -59,7 +59,6 @@ typedef struct Parser {
static const AVClass eval_class = {
.class_name = "Eval",
- .item_name = av_default_item_name,
.option = NULL,
.version = LIBAVUTIL_VERSION_INT,
.log_level_offset_offset = offsetof(Parser, log_offset),
diff --git a/libavutil/file.c b/libavutil/file.c
index cc17885bcc..4855b91963 100644
--- a/libavutil/file.c
+++ b/libavutil/file.c
@@ -45,7 +45,6 @@ typedef struct FileLogContext {
static const AVClass file_log_ctx_class = {
.class_name = "FILE",
- .item_name = av_default_item_name,
.option = NULL,
.version = LIBAVUTIL_VERSION_INT,
.log_level_offset_offset = offsetof(FileLogContext, log_offset),
diff --git a/libavutil/file_open.c b/libavutil/file_open.c
index 9aa4e4ac61..5f6f17a881 100644
--- a/libavutil/file_open.c
+++ b/libavutil/file_open.c
@@ -101,7 +101,6 @@ typedef struct FileLogContext {
static const AVClass file_log_ctx_class = {
.class_name = "TEMPFILE",
- .item_name = av_default_item_name,
.option = NULL,
.version = LIBAVUTIL_VERSION_INT,
.log_level_offset_offset = offsetof(FileLogContext, log_offset),
diff --git a/libavutil/hwcontext.c b/libavutil/hwcontext.c
index e23bad230f..430cc9ffef 100644
--- a/libavutil/hwcontext.c
+++ b/libavutil/hwcontext.c
@@ -120,7 +120,6 @@ enum AVHWDeviceType av_hwdevice_iterate_types(enum AVHWDeviceType prev)
static const AVClass hwdevice_ctx_class = {
.class_name = "AVHWDeviceContext",
- .item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
};
@@ -222,7 +221,6 @@ fail:
static const AVClass hwframe_ctx_class = {
.class_name = "AVHWFramesContext",
- .item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
};
diff --git a/libavutil/iamf.c b/libavutil/iamf.c
index 62b6051049..e648f6df2b 100644
--- a/libavutil/iamf.c
+++ b/libavutil/iamf.c
@@ -75,7 +75,6 @@ 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,
};
@@ -90,7 +89,6 @@ 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,
};
@@ -104,7 +102,6 @@ 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,
};
@@ -145,7 +142,6 @@ 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,
@@ -274,7 +270,6 @@ 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,
};
@@ -308,7 +303,6 @@ 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,
@@ -395,7 +389,6 @@ 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,
@@ -425,7 +418,6 @@ 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,
};
@@ -474,7 +466,6 @@ 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,
@@ -506,7 +497,6 @@ 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,
diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c
index aae40ba59a..ff9ff07961 100644
--- a/libavutil/imgutils.c
+++ b/libavutil/imgutils.c
@@ -279,7 +279,6 @@ typedef struct ImgUtils {
static const AVClass imgutils_class = {
.class_name = "IMGUTILS",
- .item_name = av_default_item_name,
.option = NULL,
.version = LIBAVUTIL_VERSION_INT,
.log_level_offset_offset = offsetof(ImgUtils, log_offset),
diff --git a/libavutil/opt.h b/libavutil/opt.h
index 461b5d3b6b..b0d46650d9 100644
--- a/libavutil/opt.h
+++ b/libavutil/opt.h
@@ -77,7 +77,6 @@
*
* static const AVClass test_class = {
* .class_name = "test class",
- * .item_name = av_default_item_name,
* .option = test_options,
* .version = LIBAVUTIL_VERSION_INT,
* };
@@ -131,7 +130,6 @@
* };
* static const AVClass child_class = {
* .class_name = "child class",
- * .item_name = av_default_item_name,
* .option = child_opts,
* .version = LIBAVUTIL_VERSION_INT,
* };