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>
This commit is contained in:
Andreas Rheinhardt
2023-12-22 14:47:15 +01:00
parent 46775e64f8
commit 0c6203c97a
363 changed files with 0 additions and 408 deletions
-1
View File
@@ -351,7 +351,6 @@ static const AVOption options[] = {
static const AVClass aresample_class = {
.class_name = "aresample",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
.child_class_iterate = resample_child_class_iterate,
-1
View File
@@ -60,7 +60,6 @@ static const AVOption filtergraph_options[] = {
static const AVClass filtergraph_class = {
.class_name = "AVFilterGraph",
.item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
.option = filtergraph_options,
.category = AV_CLASS_CATEGORY_FILTER,
-1
View File
@@ -320,7 +320,6 @@ const AVClass *ff_framesync_child_class_iterate(void **iter);
#define FRAMESYNC_DEFINE_PURE_CLASS(name, desc, func_prefix, options) \
static const AVClass name##_class = { \
.class_name = desc, \
.item_name = av_default_item_name, \
.option = options, \
.version = LIBAVUTIL_VERSION_INT, \
.category = AV_CLASS_CATEGORY_FILTER, \
-1
View File
@@ -311,7 +311,6 @@ int ff_request_frame(AVFilterLink *link);
#define AVFILTER_DEFINE_CLASS_EXT(name, desc, options) \
static const AVClass name##_class = { \
.class_name = desc, \
.item_name = av_default_item_name, \
.option = options, \
.version = LIBAVUTIL_VERSION_INT, \
.category = AV_CLASS_CATEGORY_FILTER, \
-1
View File
@@ -336,7 +336,6 @@ static const AVFilterPad stack_outputs[] = {
#define DEFINE_STACK_FILTER(category, api, capi, filter_flags) \
static const AVClass category##_##api##_class = { \
.class_name = #category "_" #api, \
.item_name = av_default_item_name, \
.option = category##_##api##_options, \
.version = LIBAVUTIL_VERSION_INT, \
}; \
-1
View File
@@ -435,7 +435,6 @@ static const AVOption options[] = {
static const AVClass cuda_bilateral_class = {
.class_name = "cudabilateral",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
-1
View File
@@ -338,7 +338,6 @@ exit:
static const AVClass bwdif_cuda_class = {
.class_name = "bwdif_cuda",
.item_name = av_default_item_name,
.option = ff_yadif_options,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_FILTER,
-1
View File
@@ -375,7 +375,6 @@ static int bwdif_vulkan_config_output(AVFilterLink *outlink)
static const AVClass bwdif_vulkan_class = {
.class_name = "bwdif_vulkan",
.item_name = av_default_item_name,
.option = ff_yadif_options,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_FILTER,
-1
View File
@@ -454,7 +454,6 @@ static const AVOption options[] = {
static const AVClass cudachromakey_class = {
.class_name = "cudachromakey",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
-1
View File
@@ -392,7 +392,6 @@ static const AVOption options[] = {
static const AVClass cudacolorspace_class = {
.class_name = "colorspace_cuda",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
-1
View File
@@ -392,7 +392,6 @@ static const AVOption deint_vaapi_options[] = {
static const AVClass deint_vaapi_class = {
.class_name = "deinterlace_vaapi",
.item_name = av_default_item_name,
.option = deint_vaapi_options,
.version = LIBAVUTIL_VERSION_INT,
};
-1
View File
@@ -167,7 +167,6 @@ static av_cold void hwdownload_uninit(AVFilterContext *avctx)
static const AVClass hwdownload_class = {
.class_name = "hwdownload",
.item_name = av_default_item_name,
.option = NULL,
.version = LIBAVUTIL_VERSION_INT,
};
-1
View File
@@ -1022,7 +1022,6 @@ static const AVOption scale_options[] = {
static const AVClass scale_class = {
.class_name = "scale(2ref)",
.item_name = av_default_item_name,
.option = scale_options,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_FILTER,
-1
View File
@@ -603,7 +603,6 @@ static const AVOption options[] = {
static const AVClass cudascale_class = {
.class_name = "cudascale",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
-1
View File
@@ -1013,7 +1013,6 @@ static const AVOption options[] = {
static const AVClass nppscale_class = {
.class_name = "nppscale",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_FILTER,
-1
View File
@@ -235,7 +235,6 @@ static const AVOption options[] = {
static const AVClass nppsharpen_class = {
.class_name = "nppsharpen",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
-1
View File
@@ -75,7 +75,6 @@ static const AVOption spp_options[] = {
static const AVClass spp_class = {
.class_name = "spp",
.item_name = av_default_item_name,
.option = spp_options,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_FILTER,
-1
View File
@@ -440,7 +440,6 @@ static const AVOption options[] = {
static const AVClass npptranspose_class = {
.class_name = "npptranspose",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
-1
View File
@@ -824,7 +824,6 @@ static const AVFilterPad vpp_outputs[] = {
#define DEFINE_QSV_FILTER(x, sn, ln, fmts) \
static const AVClass x##_class = { \
.class_name = #sn "_qsv", \
.item_name = av_default_item_name, \
.option = x##_options, \
.version = LIBAVUTIL_VERSION_INT, \
}; \
-1
View File
@@ -326,7 +326,6 @@ static int config_output(AVFilterLink *outlink)
static const AVClass yadif_class = {
.class_name = "yadif",
.item_name = av_default_item_name,
.option = ff_yadif_options,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_FILTER,
-1
View File
@@ -338,7 +338,6 @@ exit:
static const AVClass yadif_cuda_class = {
.class_name = "yadif_cuda",
.item_name = av_default_item_name,
.option = ff_yadif_options,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_FILTER,
-1
View File
@@ -61,7 +61,6 @@ static int vs2av_log(int type, const char *tag, const char *format, ...)
VS2AVLogCtx ctx;
AVClass class = {
.class_name = tag,
.item_name = av_default_item_name,
.option = 0,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_FILTER,