Skip to content

Commit

Permalink
all: Don't set AVClass.item_name to its default value
Browse files Browse the repository at this point in the history
Unnecessary since acf63d5;
also avoids relocations.

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
  • Loading branch information
mkver committed Dec 22, 2023
1 parent 46775e6 commit 0c6203c
Show file tree
Hide file tree
Showing 363 changed files with 0 additions and 408 deletions.
1 change: 0 additions & 1 deletion fftools/ffmpeg_mux_init.c
Expand Up @@ -2194,7 +2194,6 @@ static int of_parse_group_token(Muxer *mux, const char *token, char *ptr)
};
const AVClass class = {
.class_name = "StreamGroupType",
.item_name = av_default_item_name,
.option = opts,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion fftools/ffmpeg_opt.c
Expand Up @@ -332,7 +332,6 @@ static int opt_abort_on(void *optctx, const char *opt, const char *arg)
};
static const AVClass class = {
.class_name = "",
.item_name = av_default_item_name,
.option = opts,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion fftools/ffplay_renderer.c
Expand Up @@ -765,7 +765,6 @@ static void destroy(VkRenderer *renderer)

static const AVClass vulkan_renderer_class = {
.class_name = "Vulkan Renderer",
.item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
};

Expand Down
1 change: 0 additions & 1 deletion fftools/opt_common.c
Expand Up @@ -1069,7 +1069,6 @@ int opt_cpucount(void *optctx, const char *opt, const char *arg)
};
static const AVClass class = {
.class_name = "cpucount",
.item_name = av_default_item_name,
.option = opts,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/aacdec_template.c
Expand Up @@ -3447,7 +3447,6 @@ static const AVOption options[] = {

static const AVClass aac_decoder_class = {
.class_name = "AAC decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
1 change: 0 additions & 1 deletion libavcodec/aacenc.c
Expand Up @@ -1407,7 +1407,6 @@ static const AVOption aacenc_options[] = {

static const AVClass aacenc_class = {
.class_name = "AAC encoder",
.item_name = av_default_item_name,
.option = aacenc_options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/ac3dec_fixed.c
Expand Up @@ -165,7 +165,6 @@ static const AVOption options[] = {

static const AVClass ac3_decoder_class = {
.class_name = "Fixed-Point AC-3 Decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/ac3dec_float.c
Expand Up @@ -56,7 +56,6 @@ static const AVOption options[] = {

static const AVClass ac3_eac3_decoder_class = {
.class_name = "(E-)AC3 decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/ac3enc.c
Expand Up @@ -130,7 +130,6 @@ const AVOption ff_ac3_enc_options[] = {

const AVClass ff_ac3enc_class = {
.class_name = "AC-3 Encoder",
.item_name = av_default_item_name,
.option = ff_ac3_enc_options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/adpcmenc.c
Expand Up @@ -989,7 +989,6 @@ static const AVOption options[] = {

static const AVClass adpcm_encoder_class = {
.class_name = "ADPCM encoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/alac.c
Expand Up @@ -611,7 +611,6 @@ static const AVOption options[] = {

static const AVClass alac_class = {
.class_name = "alac",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/alacenc.c
Expand Up @@ -643,7 +643,6 @@ static const AVOption options[] = {

static const AVClass alacenc_class = {
.class_name = "alacenc",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/amfenc_av1.c
Expand Up @@ -465,7 +465,6 @@ static const FFCodecDefault defaults[] = {

static const AVClass av1_amf_class = {
.class_name = "av1_amf",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/amfenc_h264.c
Expand Up @@ -518,7 +518,6 @@ static const FFCodecDefault defaults[] = {

static const AVClass h264_amf_class = {
.class_name = "h264_amf",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/amfenc_hevc.c
Expand Up @@ -433,7 +433,6 @@ static const FFCodecDefault defaults[] = {
};
static const AVClass hevc_amf_class = {
.class_name = "hevc_amf",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/apedec.c
Expand Up @@ -1744,7 +1744,6 @@ static const AVOption options[] = {

static const AVClass ape_decoder_class = {
.class_name = "APE decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/audiotoolboxenc.c
Expand Up @@ -610,7 +610,6 @@ static const AVOption options[] = {
#define FFAT_ENC_CLASS(NAME) \
static const AVClass ffat_##NAME##_enc_class = { \
.class_name = "at_" #NAME "_enc", \
.item_name = av_default_item_name, \
.option = options, \
.version = LIBAVUTIL_VERSION_INT, \
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/av1_metadata_bsf.c
Expand Up @@ -211,7 +211,6 @@ static const AVOption av1_metadata_options[] = {

static const AVClass av1_metadata_class = {
.class_name = "av1_metadata_bsf",
.item_name = av_default_item_name,
.option = av1_metadata_options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/av1dec.c
Expand Up @@ -1485,7 +1485,6 @@ static const AVOption av1_options[] = {

static const AVClass av1_class = {
.class_name = "AV1 decoder",
.item_name = av_default_item_name,
.option = av1_options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/cbs_av1.c
Expand Up @@ -1277,7 +1277,6 @@ static const AVOption cbs_av1_options[] = {

static const AVClass cbs_av1_class = {
.class_name = "cbs_av1",
.item_name = av_default_item_name,
.option = cbs_av1_options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/ccaption_dec.c
Expand Up @@ -934,7 +934,6 @@ static const AVOption options[] = {

static const AVClass ccaption_dec_class = {
.class_name = "Closed caption Decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/cfhdenc.c
Expand Up @@ -849,7 +849,6 @@ static const AVOption options[] = {

static const AVClass cfhd_class = {
.class_name = "cfhd",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/cinepakenc.c
Expand Up @@ -148,7 +148,6 @@ static const AVOption options[] = {

static const AVClass cinepak_class = {
.class_name = "cinepak",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/cljrenc.c
Expand Up @@ -103,7 +103,6 @@ static const AVOption options[] = {

static const AVClass cljr_class = {
.class_name = "cljr encoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/crystalhd.c
Expand Up @@ -778,7 +778,6 @@ static int crystalhd_receive_frame(AVCodecContext *avctx, AVFrame *frame)
#define DEFINE_CRYSTALHD_DECODER(x, X, bsf_name) \
static const AVClass x##_crystalhd_class = { \
.class_name = #x "_crystalhd", \
.item_name = av_default_item_name, \
.option = options, \
.version = LIBAVUTIL_VERSION_INT, \
}; \
Expand Down
1 change: 0 additions & 1 deletion libavcodec/cuviddec.c
Expand Up @@ -1155,7 +1155,6 @@ static const AVCodecHWConfigInternal *const cuvid_hw_configs[] = {
#define DEFINE_CUVID_CODEC(x, X, bsf_name) \
static const AVClass x##_cuvid_class = { \
.class_name = #x "_cuvid", \
.item_name = av_default_item_name, \
.option = options, \
.version = LIBAVUTIL_VERSION_INT, \
}; \
Expand Down
1 change: 0 additions & 1 deletion libavcodec/dcadec.c
Expand Up @@ -410,7 +410,6 @@ static const AVOption dcadec_options[] = {

static const AVClass dcadec_class = {
.class_name = "DCA decoder",
.item_name = av_default_item_name,
.option = dcadec_options,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_DECODER,
Expand Down
1 change: 0 additions & 1 deletion libavcodec/dcaenc.c
Expand Up @@ -1300,7 +1300,6 @@ static const AVOption options[] = {

static const AVClass dcaenc_class = {
.class_name = "DCA (DTS Coherent Acoustics)",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/dnxhdenc.c
Expand Up @@ -73,7 +73,6 @@ static const AVOption options[] = {

static const AVClass dnxhd_class = {
.class_name = "dnxhd",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/dolby_e.c
Expand Up @@ -1300,7 +1300,6 @@ static const AVOption options[] = {

static const AVClass dolby_e_decoder_class = {
.class_name = "Dolby E decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/dump_extradata_bsf.c
Expand Up @@ -93,7 +93,6 @@ static const AVOption options[] = {

static const AVClass dump_extradata_class = {
.class_name = "dump_extradata bsf",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/dv_error_marker_bsf.c
Expand Up @@ -123,7 +123,6 @@ static const AVOption options[] = {

static const AVClass dv_error_marker_class = {
.class_name = "dv_error_marker",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/dvbsubdec.c
Expand Up @@ -1564,7 +1564,6 @@ static const AVOption options[] = {
};
static const AVClass dvbsubdec_class = {
.class_name = "DVB Sub Decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/dvdsubdec.c
Expand Up @@ -701,7 +701,6 @@ static const AVOption options[] = {
};
static const AVClass dvdsub_class = {
.class_name = "dvdsubdec",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/dvdsubenc.c
Expand Up @@ -496,7 +496,6 @@ static const AVOption options[] = {

static const AVClass dvdsubenc_class = {
.class_name = "VOBSUB subtitle encoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/dvenc.c
Expand Up @@ -1231,7 +1231,6 @@ static const AVOption dv_options[] = {

static const AVClass dvvideo_encode_class = {
.class_name = "dvvideo encoder",
.item_name = av_default_item_name,
.option = dv_options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/eac3enc.c
Expand Up @@ -35,7 +35,6 @@

static const AVClass eac3enc_class = {
.class_name = "E-AC-3 Encoder",
.item_name = av_default_item_name,
.option = &ff_ac3_enc_options[2], /* First two options are AC-3 only. */
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/evrcdec.c
Expand Up @@ -924,7 +924,6 @@ static const AVOption options[] = {

static const AVClass evrcdec_class = {
.class_name = "evrc",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/exr.c
Expand Up @@ -2345,7 +2345,6 @@ static const AVOption options[] = {

static const AVClass exr_class = {
.class_name = "EXR",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/exrenc.c
Expand Up @@ -535,7 +535,6 @@ static const AVOption options[] = {

static const AVClass exr_class = {
.class_name = "exr",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/extract_extradata_bsf.c
Expand Up @@ -457,7 +457,6 @@ static const AVOption options[] = {

static const AVClass extract_extradata_class = {
.class_name = "extract_extradata",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/ffv1enc.c
Expand Up @@ -1263,7 +1263,6 @@ static const AVOption options[] = {

static const AVClass ffv1_class = {
.class_name = "ffv1 encoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/fic.c
Expand Up @@ -479,7 +479,6 @@ static const AVOption options[] = {

static const AVClass fic_decoder_class = {
.class_name = "FIC decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/filter_units_bsf.c
Expand Up @@ -268,7 +268,6 @@ static const AVOption filter_units_options[] = {

static const AVClass filter_units_class = {
.class_name = "filter_units",
.item_name = av_default_item_name,
.option = filter_units_options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/fitsdec.c
Expand Up @@ -316,7 +316,6 @@ static const AVOption fits_options[] = {

static const AVClass fits_decoder_class = {
.class_name = "FITS decoder",
.item_name = av_default_item_name,
.option = fits_options,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_DECODER,
Expand Down
1 change: 0 additions & 1 deletion libavcodec/flacdec.c
Expand Up @@ -820,7 +820,6 @@ static const AVOption options[] = {

static const AVClass flac_decoder_class = {
.class_name = "FLAC decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/flacenc.c
Expand Up @@ -1743,7 +1743,6 @@ static const AVOption options[] = {

static const AVClass flac_encoder_class = {
.class_name = "FLAC encoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/frwu.c
Expand Up @@ -110,7 +110,6 @@ static const AVOption frwu_options[] = {

static const AVClass frwu_class = {
.class_name = "frwu Decoder",
.item_name = av_default_item_name,
.option = frwu_options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/g722dec.c
Expand Up @@ -51,7 +51,6 @@ static const AVOption options[] = {

static const AVClass g722_decoder_class = {
.class_name = "g722 decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down
1 change: 0 additions & 1 deletion libavcodec/g723_1dec.c
Expand Up @@ -1105,7 +1105,6 @@ static const AVOption options[] = {

static const AVClass g723_1dec_class = {
.class_name = "G.723.1 decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
};
Expand Down

0 comments on commit 0c6203c

Please sign in to comment.