diff mbox series

[FFmpeg-devel] all: Don't set AVClass.item_name to its default value

Message ID AS8P250MB0744234C3275A8395AFBC5238F94A@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e
Headers show
Series [FFmpeg-devel] all: Don't set AVClass.item_name to its default value | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Dec. 22, 2023, 1:48 p.m. UTC
Avoids relocations.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 fftools/ffmpeg_mux_init.c          |  1 -
 fftools/ffmpeg_opt.c               |  1 -
 fftools/ffplay_renderer.c          |  1 -
 fftools/opt_common.c               |  1 -
 libavcodec/aacdec_template.c       |  1 -
 libavcodec/aacenc.c                |  1 -
 libavcodec/ac3dec_fixed.c          |  1 -
 libavcodec/ac3dec_float.c          |  1 -
 libavcodec/ac3enc.c                |  1 -
 libavcodec/adpcmenc.c              |  1 -
 libavcodec/alac.c                  |  1 -
 libavcodec/alacenc.c               |  1 -
 libavcodec/amfenc_av1.c            |  1 -
 libavcodec/amfenc_h264.c           |  1 -
 libavcodec/amfenc_hevc.c           |  1 -
 libavcodec/apedec.c                |  1 -
 libavcodec/audiotoolboxenc.c       |  1 -
 libavcodec/av1_metadata_bsf.c      |  1 -
 libavcodec/av1dec.c                |  1 -
 libavcodec/cbs_av1.c               |  1 -
 libavcodec/ccaption_dec.c          |  1 -
 libavcodec/cfhdenc.c               |  1 -
 libavcodec/cinepakenc.c            |  1 -
 libavcodec/cljrenc.c               |  1 -
 libavcodec/crystalhd.c             |  1 -
 libavcodec/cuviddec.c              |  1 -
 libavcodec/dcadec.c                |  1 -
 libavcodec/dcaenc.c                |  1 -
 libavcodec/dnxhdenc.c              |  1 -
 libavcodec/dolby_e.c               |  1 -
 libavcodec/dump_extradata_bsf.c    |  1 -
 libavcodec/dv_error_marker_bsf.c   |  1 -
 libavcodec/dvbsubdec.c             |  1 -
 libavcodec/dvdsubdec.c             |  1 -
 libavcodec/dvdsubenc.c             |  1 -
 libavcodec/dvenc.c                 |  1 -
 libavcodec/eac3enc.c               |  1 -
 libavcodec/evrcdec.c               |  1 -
 libavcodec/exr.c                   |  1 -
 libavcodec/exrenc.c                |  1 -
 libavcodec/extract_extradata_bsf.c |  1 -
 libavcodec/ffv1enc.c               |  1 -
 libavcodec/fic.c                   |  1 -
 libavcodec/filter_units_bsf.c      |  1 -
 libavcodec/fitsdec.c               |  1 -
 libavcodec/flacdec.c               |  1 -
 libavcodec/flacenc.c               |  1 -
 libavcodec/frwu.c                  |  1 -
 libavcodec/g722dec.c               |  1 -
 libavcodec/g723_1dec.c             |  1 -
 libavcodec/g726.c                  |  1 -
 libavcodec/gif.c                   |  1 -
 libavcodec/gifdec.c                |  1 -
 libavcodec/h264_metadata_bsf.c     |  1 -
 libavcodec/h264dec.c               |  1 -
 libavcodec/h265_metadata_bsf.c     |  1 -
 libavcodec/h266_metadata_bsf.c     |  1 -
 libavcodec/hapenc.c                |  1 -
 libavcodec/hapqa_extract_bsf.c     |  1 -
 libavcodec/hevcdec.c               |  1 -
 libavcodec/huffyuvenc.c            |  2 --
 libavcodec/ituh263enc.c            |  2 --
 libavcodec/j2kenc.c                |  1 -
 libavcodec/jpeg2000dec.c           |  1 -
 libavcodec/jpeglsenc.c             |  1 -
 libavcodec/libaomenc.c             |  1 -
 libavcodec/libaribb24.c            |  1 -
 libavcodec/libaribcaption.c        |  1 -
 libavcodec/libcodec2.c             |  1 -
 libavcodec/libdav1d.c              |  1 -
 libavcodec/libfdk-aacdec.c         |  1 -
 libavcodec/libfdk-aacenc.c         |  1 -
 libavcodec/libilbc.c               |  2 --
 libavcodec/libjxlenc.c             |  1 -
 libavcodec/libkvazaar.c            |  1 -
 libavcodec/libmp3lame.c            |  1 -
 libavcodec/libopencore-amr.c       |  1 -
 libavcodec/libopenh264enc.c        |  1 -
 libavcodec/libopenjpegenc.c        |  1 -
 libavcodec/libopusdec.c            |  1 -
 libavcodec/libopusenc.c            |  1 -
 libavcodec/librav1e.c              |  1 -
 libavcodec/librsvgdec.c            |  1 -
 libavcodec/libspeexenc.c           |  1 -
 libavcodec/libsvtav1.c             |  1 -
 libavcodec/libtwolame.c            |  1 -
 libavcodec/libvo-amrwbenc.c        |  1 -
 libavcodec/libvorbisenc.c          |  1 -
 libavcodec/libvpxenc.c             |  2 --
 libavcodec/libwebpenc_common.c     |  1 -
 libavcodec/libx264.c               |  3 ---
 libavcodec/libx265.c               |  1 -
 libavcodec/libxavs.c               |  1 -
 libavcodec/libxavs2.c              |  1 -
 libavcodec/libxevd.c               |  1 -
 libavcodec/libxeve.c               |  1 -
 libavcodec/libxvid.c               |  1 -
 libavcodec/libzvbi-teletextdec.c   |  1 -
 libavcodec/ljpegenc.c              |  1 -
 libavcodec/magicyuvenc.c           |  1 -
 libavcodec/mediacodec_wrapper.c    |  4 ----
 libavcodec/mediacodecdec.c         |  1 -
 libavcodec/mediacodecenc.c         |  1 -
 libavcodec/mfenc.c                 |  1 -
 libavcodec/mjpegdec.c              |  1 -
 libavcodec/mjpegenc.c              |  2 --
 libavcodec/mlpdec.c                |  2 --
 libavcodec/mlpenc.c                |  1 -
 libavcodec/mmaldec.c               |  1 -
 libavcodec/movtextdec.c            |  1 -
 libavcodec/movtextenc.c            |  1 -
 libavcodec/mpeg12enc.c             |  1 -
 libavcodec/mpeg2_metadata_bsf.c    |  1 -
 libavcodec/mpeg4videodec.c         |  1 -
 libavcodec/mpeg4videoenc.c         |  1 -
 libavcodec/mpegvideo_enc.c         |  1 -
 libavcodec/noise_bsf.c             |  1 -
 libavcodec/nvenc_av1.c             |  1 -
 libavcodec/nvenc_h264.c            |  1 -
 libavcodec/nvenc_hevc.c            |  1 -
 libavcodec/omx.c                   |  2 --
 libavcodec/opus_metadata_bsf.c     |  1 -
 libavcodec/opusdec.c               |  1 -
 libavcodec/opusenc.c               |  1 -
 libavcodec/pcm_rechunk_bsf.c       |  1 -
 libavcodec/pgssubdec.c             |  1 -
 libavcodec/photocd.c               |  1 -
 libavcodec/pngenc.c                |  1 -
 libavcodec/prores_metadata_bsf.c   |  1 -
 libavcodec/proresenc_anatoliy.c    |  1 -
 libavcodec/proresenc_kostya.c      |  1 -
 libavcodec/qsvdec.c                |  1 -
 libavcodec/qsvenc_av1.c            |  1 -
 libavcodec/qsvenc_h264.c           |  1 -
 libavcodec/qsvenc_hevc.c           |  1 -
 libavcodec/qsvenc_jpeg.c           |  1 -
 libavcodec/qsvenc_mpeg2.c          |  1 -
 libavcodec/qsvenc_vp9.c            |  1 -
 libavcodec/rasc.c                  |  1 -
 libavcodec/remove_extradata_bsf.c  |  1 -
 libavcodec/roqvideoenc.c           |  1 -
 libavcodec/rpzaenc.c               |  1 -
 libavcodec/s302m.c                 |  1 -
 libavcodec/sbcenc.c                |  1 -
 libavcodec/setts_bsf.c             |  1 -
 libavcodec/sgienc.c                |  1 -
 libavcodec/snowenc.c               |  1 -
 libavcodec/sunrastenc.c            |  1 -
 libavcodec/svq1enc.c               |  1 -
 libavcodec/targaenc.c              |  1 -
 libavcodec/textdec.c               |  1 -
 libavcodec/tiff.c                  |  1 -
 libavcodec/tiffenc.c               |  1 -
 libavcodec/tta.c                   |  1 -
 libavcodec/utvideoenc.c            |  1 -
 libavcodec/v210dec.c               |  1 -
 libavcodec/v4l2_m2m_dec.c          |  1 -
 libavcodec/v4l2_m2m_enc.c          |  1 -
 libavcodec/vaapi_encode_av1.c      |  1 -
 libavcodec/vaapi_encode_h264.c     |  1 -
 libavcodec/vaapi_encode_h265.c     |  1 -
 libavcodec/vaapi_encode_mjpeg.c    |  1 -
 libavcodec/vaapi_encode_mpeg2.c    |  1 -
 libavcodec/vaapi_encode_vp8.c      |  1 -
 libavcodec/vaapi_encode_vp9.c      |  1 -
 libavcodec/vbnenc.c                |  1 -
 libavcodec/vc2enc.c                |  1 -
 libavcodec/videotoolboxenc.c       |  3 ---
 libavcodec/vorbis_parser.c         |  1 -
 libavcodec/vp9_metadata_bsf.c      |  1 -
 libavcodec/wavpackenc.c            |  1 -
 libavdevice/alsa_dec.c             |  1 -
 libavdevice/alsa_enc.c             |  1 -
 libavdevice/android_camera.c       |  1 -
 libavdevice/audiotoolbox.m         |  1 -
 libavdevice/avfoundation.m         |  1 -
 libavdevice/bktr.c                 |  1 -
 libavdevice/caca.c                 |  1 -
 libavdevice/decklink_dec_c.c       |  1 -
 libavdevice/decklink_enc_c.c       |  1 -
 libavdevice/dshow.c                |  1 -
 libavdevice/fbdev_dec.c            |  1 -
 libavdevice/fbdev_enc.c            |  1 -
 libavdevice/gdigrab.c              |  1 -
 libavdevice/iec61883.c             |  1 -
 libavdevice/jack.c                 |  1 -
 libavdevice/kmsgrab.c              |  1 -
 libavdevice/lavfi.c                |  1 -
 libavdevice/libcdio.c              |  1 -
 libavdevice/libdc1394.c            |  1 -
 libavdevice/openal-dec.c           |  1 -
 libavdevice/opengl_enc.c           |  1 -
 libavdevice/oss_dec.c              |  1 -
 libavdevice/oss_enc.c              |  1 -
 libavdevice/pulse_audio_dec.c      |  1 -
 libavdevice/pulse_audio_enc.c      |  1 -
 libavdevice/sdl2.c                 |  1 -
 libavdevice/sndio_dec.c            |  1 -
 libavdevice/sndio_enc.c            |  1 -
 libavdevice/v4l2.c                 |  1 -
 libavdevice/v4l2enc.c              |  1 -
 libavdevice/vfwcap.c               |  1 -
 libavdevice/xcbgrab.c              |  1 -
 libavdevice/xv.c                   |  1 -
 libavfilter/af_aresample.c         |  1 -
 libavfilter/avfiltergraph.c        |  1 -
 libavfilter/framesync.h            |  1 -
 libavfilter/internal.h             |  1 -
 libavfilter/stack_internal.c       |  1 -
 libavfilter/vf_bilateral_cuda.c    |  1 -
 libavfilter/vf_bwdif_cuda.c        |  1 -
 libavfilter/vf_bwdif_vulkan.c      |  1 -
 libavfilter/vf_chromakey_cuda.c    |  1 -
 libavfilter/vf_colorspace_cuda.c   |  1 -
 libavfilter/vf_deinterlace_vaapi.c |  1 -
 libavfilter/vf_hwdownload.c        |  1 -
 libavfilter/vf_scale.c             |  1 -
 libavfilter/vf_scale_cuda.c        |  1 -
 libavfilter/vf_scale_npp.c         |  1 -
 libavfilter/vf_sharpen_npp.c       |  1 -
 libavfilter/vf_spp.c               |  1 -
 libavfilter/vf_transpose_npp.c     |  1 -
 libavfilter/vf_vpp_qsv.c           |  1 -
 libavfilter/vf_yadif.c             |  1 -
 libavfilter/vf_yadif_cuda.c        |  1 -
 libavfilter/vidstabutils.c         |  1 -
 libavformat/aadec.c                |  1 -
 libavformat/ac4enc.c               |  1 -
 libavformat/adtsenc.c              |  1 -
 libavformat/aiffenc.c              |  1 -
 libavformat/alp.c                  |  1 -
 libavformat/apngdec.c              |  1 -
 libavformat/apngenc.c              |  1 -
 libavformat/aptxdec.c              |  1 -
 libavformat/aqtitledec.c           |  1 -
 libavformat/argo_asf.c             |  1 -
 libavformat/argo_cvg.c             |  1 -
 libavformat/asfdec_f.c             |  1 -
 libavformat/asfenc.c               |  1 -
 libavformat/assenc.c               |  1 -
 libavformat/astenc.c               |  1 -
 libavformat/async.c                |  2 --
 libavformat/av1dec.c               |  1 -
 libavformat/avidec.c               |  1 -
 libavformat/avienc.c               |  1 -
 libavformat/aviobuf.c              |  1 -
 libavformat/avisynth.c             |  1 -
 libavformat/bintext.c              |  1 -
 libavformat/bluray.c               |  1 -
 libavformat/cache.c                |  1 -
 libavformat/cdxl.c                 |  1 -
 libavformat/chromaprint.c          |  1 -
 libavformat/codec2.c               |  2 --
 libavformat/concatdec.c            |  1 -
 libavformat/crypto.c               |  1 -
 libavformat/dashdec.c              |  1 -
 libavformat/dashenc.c              |  1 -
 libavformat/dfpwmdec.c             |  1 -
 libavformat/electronicarts.c       |  1 -
 libavformat/evcdec.c               |  1 -
 libavformat/fifo.c                 |  1 -
 libavformat/fifo_test.c            |  1 -
 libavformat/file.c                 |  3 ---
 libavformat/fitsdec.c              |  1 -
 libavformat/flacenc.c              |  1 -
 libavformat/flvdec.c               |  1 -
 libavformat/flvenc.c               |  1 -
 libavformat/ftp.c                  |  1 -
 libavformat/g726.c                 |  1 -
 libavformat/g729dec.c              |  1 -
 libavformat/gif.c                  |  1 -
 libavformat/gifdec.c               |  1 -
 libavformat/gsmdec.c               |  1 -
 libavformat/hashenc.c              |  4 ----
 libavformat/hca.c                  |  1 -
 libavformat/hdsenc.c               |  1 -
 libavformat/hls.c                  |  1 -
 libavformat/hlsenc.c               |  1 -
 libavformat/http.c                 |  1 -
 libavformat/icecast.c              |  1 -
 libavformat/imfdec.c               |  1 -
 libavformat/img2_alias_pix.c       |  1 -
 libavformat/img2_brender_pix.c     |  1 -
 libavformat/img2dec.c              |  2 --
 libavformat/img2enc.c              |  1 -
 libavformat/ipfsgateway.c          |  1 -
 libavformat/latmenc.c              |  1 -
 libavformat/libamqp.c              |  1 -
 libavformat/libgme.c               |  1 -
 libavformat/libmodplug.c           |  1 -
 libavformat/libopenmpt.c           |  1 -
 libavformat/librist.c              |  1 -
 libavformat/librtmp.c              |  1 -
 libavformat/libsmbclient.c         |  1 -
 libavformat/libsrt.c               |  1 -
 libavformat/libssh.c               |  1 -
 libavformat/libzmq.c               |  1 -
 libavformat/matroskadec.c          |  1 -
 libavformat/matroskaenc.c          |  1 -
 libavformat/microdvddec.c          |  1 -
 libavformat/mov.c                  |  1 -
 libavformat/movenc.c               |  2 --
 libavformat/mp3dec.c               |  1 -
 libavformat/mp3enc.c               |  1 -
 libavformat/mpeg.c                 |  1 -
 libavformat/mpegenc.c              |  1 -
 libavformat/mpegts.c               |  2 --
 libavformat/mpegtsenc.c            |  1 -
 libavformat/mpjpeg.c               |  1 -
 libavformat/mpjpegdec.c            |  1 -
 libavformat/mxfdec.c               |  1 -
 libavformat/mxfenc.c               |  3 ---
 libavformat/nutenc.c               |  1 -
 libavformat/oggenc.c               |  1 -
 libavformat/options.c              |  2 --
 libavformat/pcmdec.c               |  2 --
 libavformat/prompeg.c              |  1 -
 libavformat/rawdec.c               |  2 --
 libavformat/rawvideodec.c          |  3 ---
 libavformat/rtmpcrypt.c            |  1 -
 libavformat/rtmphttp.c             |  1 -
 libavformat/rtmpproto.c            |  1 -
 libavformat/rtpenc.c               |  1 -
 libavformat/rtpenc_mpegts.c        |  1 -
 libavformat/rtpproto.c             |  1 -
 libavformat/rtsp.c                 |  2 --
 libavformat/rtspdec.c              |  1 -
 libavformat/rtspenc.c              |  1 -
 libavformat/sbgdec.c               |  1 -
 libavformat/sctp.c                 |  1 -
 libavformat/segment.c              |  1 -
 libavformat/serdec.c               |  1 -
 libavformat/smoothstreamingenc.c   |  1 -
 libavformat/spdifenc.c             |  1 -
 libavformat/srtpproto.c            |  1 -
 libavformat/subfile.c              |  1 -
 libavformat/tcp.c                  |  1 -
 libavformat/tedcaptionsdec.c       |  1 -
 libavformat/tee.c                  |  1 -
 libavformat/tls_gnutls.c           |  1 -
 libavformat/tls_libtls.c           |  1 -
 libavformat/tls_mbedtls.c          |  1 -
 libavformat/tls_openssl.c          |  1 -
 libavformat/tls_schannel.c         |  1 -
 libavformat/tls_securetransport.c  |  1 -
 libavformat/tty.c                  |  1 -
 libavformat/udp.c                  |  2 --
 libavformat/unix.c                 |  1 -
 libavformat/vapoursynth.c          |  1 -
 libavformat/wavdec.c               |  2 --
 libavformat/wavenc.c               |  1 -
 libavformat/webm_chunk.c           |  1 -
 libavformat/webmdashenc.c          |  1 -
 libavformat/webpenc.c              |  1 -
 libavformat/webvttdec.c            |  1 -
 libavutil/cpu.c                    |  1 -
 libavutil/eval.c                   |  1 -
 libavutil/file.c                   |  1 -
 libavutil/file_open.c              |  1 -
 libavutil/hwcontext.c              |  2 --
 libavutil/iamf.c                   | 10 ----------
 libavutil/imgutils.c               |  1 -
 libavutil/opt.h                    |  2 --
 363 files changed, 408 deletions(-)

Comments

Anton Khirnov Dec. 22, 2023, 1:57 p.m. UTC | #1
Quoting Andreas Rheinhardt (2023-12-22 14:48:45)
> Avoids relocations.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---

Maybe mention that it's not needed after
acf63d5350adeae551d412db699f8ca03f7e76b9.

LGTM otherwise.
Rémi Denis-Courmont Dec. 22, 2023, 3:11 p.m. UTC | #2
Le perjantaina 22. joulukuuta 2023, 15.48.45 EET Andreas Rheinhardt a écrit :
> Avoids relocations.

This is a little bit misleading. It reduces the number of relocations indeed, 
but the data structures still end up in nonshareable .data.relro rather than 
.rodata due to other remaining pointers.

I'm fine with the change though.
Andreas Rheinhardt Dec. 22, 2023, 4:13 p.m. UTC | #3
Rémi Denis-Courmont:
> Le perjantaina 22. joulukuuta 2023, 15.48.45 EET Andreas Rheinhardt a écrit :
>> Avoids relocations.
> 
> This is a little bit misleading. It reduces the number of relocations indeed, 
> but the data structures still end up in nonshareable .data.relro rather than 
> .rodata due to other remaining pointers.
> 

I never claimed that the AVClasses would be moved to .rodata. I only
claimed that it avoids relocations. And it does.

- Andreas
Rémi Denis-Courmont Dec. 22, 2023, 4:20 p.m. UTC | #4
Le perjantaina 22. joulukuuta 2023, 18.13.51 EET Andreas Rheinhardt a écrit :
> Rémi Denis-Courmont:
> > Le perjantaina 22. joulukuuta 2023, 15.48.45 EET Andreas Rheinhardt a 
écrit :
> >> Avoids relocations.
> > 
> > This is a little bit misleading. It reduces the number of relocations
> > indeed, but the data structures still end up in nonshareable .data.relro
> > rather than .rodata due to other remaining pointers.
> 
> I never claimed that the AVClasses would be moved to .rodata. I only
> claimed that it avoids relocations. And it does.

It is misleading because it can be interpreted both ways. I could equally 
argue that it does not avoid relocations: the concerned objects are still 
subject to relocations.
Kacper Michajłow Dec. 24, 2023, 10:41 a.m. UTC | #5
On Fri, 22 Dec 2023 at 14:57, Anton Khirnov <anton@khirnov.net> wrote:
>
> Quoting Andreas Rheinhardt (2023-12-22 14:48:45)
> > Avoids relocations.
> >
> > Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> > ---
>
> Maybe mention that it's not needed after
> acf63d5350adeae551d412db699f8ca03f7e76b9.

This is not the only user of this API, no?

I have a question for my own curiosity. This is ABI (and API) breaking
change, shouldn't there be a documentation change to indicate this
item_name function pointer can be null now? Or otherwise a way to
indicate that this should be updated in client applications?

It is easy fix, but it is kinda surprising to break over 14 year old
code like in mpv, see: https://github.com/mpv-player/mpv/pull/13154

- Kacper

> LGTM otherwise.
>
> --
> Anton Khirnov
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
Anton Khirnov Dec. 25, 2023, 8:38 a.m. UTC | #6
Quoting Kacper Michajlow (2023-12-24 11:41:52)
> On Fri, 22 Dec 2023 at 14:57, Anton Khirnov <anton@khirnov.net> wrote:
> >
> > Quoting Andreas Rheinhardt (2023-12-22 14:48:45)
> > > Avoids relocations.
> > >
> > > Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> > > ---
> >
> > Maybe mention that it's not needed after
> > acf63d5350adeae551d412db699f8ca03f7e76b9.
> 
> This is not the only user of this API, no?
> 
> I have a question for my own curiosity. This is ABI (and API) breaking
> change,

It is not. This item was not guaranteed to be set, which was actually
the reason I wrote the patch that this one refers to.
Zhao Zhili Dec. 25, 2023, 9:27 a.m. UTC | #7
> On Dec 25, 2023, at 16:38, Anton Khirnov <anton@khirnov.net> wrote:
> 
> Quoting Kacper Michajlow (2023-12-24 11:41:52)
>> On Fri, 22 Dec 2023 at 14:57, Anton Khirnov <anton@khirnov.net> wrote:
>>> 
>>> Quoting Andreas Rheinhardt (2023-12-22 14:48:45)
>>>> Avoids relocations.
>>>> 
>>>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
>>>> ---
>>> 
>>> Maybe mention that it's not needed after
>>> acf63d5350adeae551d412db699f8ca03f7e76b9.
>> 
>> This is not the only user of this API, no?
>> 
>> I have a question for my own curiosity. This is ABI (and API) breaking
>> change,
> 
> It is not. This item was not guaranteed to be set, which was actually
> the reason I wrote the patch that this one refers to.

There is no problem to relax a restriction inside libavutil. However, since there is
no explicit documentation on whether item_name can be null or not, user may make
incorrect assumptions and depend on item_name not being null. I don’t think break
user’s code suddenly is a good idea, although we can say it’s break since the beginning.

> 
> -- 
> Anton Khirnov
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
Anton Khirnov Dec. 25, 2023, 10:21 a.m. UTC | #8
Quoting Zhao Zhili (2023-12-25 10:27:59)
> 
> 
> > On Dec 25, 2023, at 16:38, Anton Khirnov <anton@khirnov.net> wrote:
> > 
> > Quoting Kacper Michajlow (2023-12-24 11:41:52)
> >> On Fri, 22 Dec 2023 at 14:57, Anton Khirnov <anton@khirnov.net> wrote:
> >>> 
> >>> Quoting Andreas Rheinhardt (2023-12-22 14:48:45)
> >>>> Avoids relocations.
> >>>> 
> >>>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> >>>> ---
> >>> 
> >>> Maybe mention that it's not needed after
> >>> acf63d5350adeae551d412db699f8ca03f7e76b9.
> >> 
> >> This is not the only user of this API, no?
> >> 
> >> I have a question for my own curiosity. This is ABI (and API) breaking
> >> change,
> > 
> > It is not. This item was not guaranteed to be set, which was actually
> > the reason I wrote the patch that this one refers to.
> 
> There is no problem to relax a restriction inside libavutil. However, since there is
> no explicit documentation on whether item_name can be null or not, user may make
> incorrect assumptions and depend on item_name not being null. I don’t think break
> user’s code suddenly is a good idea, although we can say it’s break since the beginning.

My point is that the restriction never existed. There were always
AVClass instances that did not set that pointer. There were fewer of
them, but they did exist.
Zhao Zhili Dec. 25, 2023, 10:47 a.m. UTC | #9
> On Dec 25, 2023, at 18:21, Anton Khirnov <anton@khirnov.net> wrote:
> 
> Quoting Zhao Zhili (2023-12-25 10:27:59)
>> 
>> 
>>> On Dec 25, 2023, at 16:38, Anton Khirnov <anton@khirnov.net> wrote:
>>> 
>>> Quoting Kacper Michajlow (2023-12-24 11:41:52)
>>>> On Fri, 22 Dec 2023 at 14:57, Anton Khirnov <anton@khirnov.net> wrote:
>>>>> 
>>>>> Quoting Andreas Rheinhardt (2023-12-22 14:48:45)
>>>>>> Avoids relocations.
>>>>>> 
>>>>>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
>>>>>> ---
>>>>> 
>>>>> Maybe mention that it's not needed after
>>>>> acf63d5350adeae551d412db699f8ca03f7e76b9.
>>>> 
>>>> This is not the only user of this API, no?
>>>> 
>>>> I have a question for my own curiosity. This is ABI (and API) breaking
>>>> change,
>>> 
>>> It is not. This item was not guaranteed to be set, which was actually
>>> the reason I wrote the patch that this one refers to.
>> 
>> There is no problem to relax a restriction inside libavutil. However, since there is
>> no explicit documentation on whether item_name can be null or not, user may make
>> incorrect assumptions and depend on item_name not being null. I don’t think break
>> user’s code suddenly is a good idea, although we can say it’s break since the beginning.
> 
> My point is that the restriction never existed.

I’m not argue against this.

> There were always
> AVClass instances that did not set that pointer. There were fewer of
> them, but they did exist.

acf63d5350adeae551d412db699f8ca03f7e76b9 just shows that even libavutil can make
that incorrect assumption, we cannot expect more from users. If user’s code don’t trigger
those instances with null pointer, it works from user’s viewpoint. It’s hard to believe that
the bug found in MPV doesn’t exist in other  projects. We need another method to make
such change smoothly.

> 
> -- 
> Anton Khirnov
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org <mailto:ffmpeg-devel@ffmpeg.org>
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org <mailto:ffmpeg-devel-request@ffmpeg.org> with subject "unsubscribe".
Kacper Michajłow Dec. 27, 2023, 2:19 p.m. UTC | #10
On Mon, 25 Dec 2023 at 11:48, Zhao Zhili <quinkblack@foxmail.com> wrote:
>
>
>
> > On Dec 25, 2023, at 18:21, Anton Khirnov <anton@khirnov.net> wrote:
> >
> > Quoting Zhao Zhili (2023-12-25 10:27:59)
> >>
> >>
> >>> On Dec 25, 2023, at 16:38, Anton Khirnov <anton@khirnov.net> wrote:
> >>>
> >>> Quoting Kacper Michajlow (2023-12-24 11:41:52)
> >>>> On Fri, 22 Dec 2023 at 14:57, Anton Khirnov <anton@khirnov.net> wrote:
> >>>>>
> >>>>> Quoting Andreas Rheinhardt (2023-12-22 14:48:45)
> >>>>>> Avoids relocations.
> >>>>>>
> >>>>>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> >>>>>> ---
> >>>>>
> >>>>> Maybe mention that it's not needed after
> >>>>> acf63d5350adeae551d412db699f8ca03f7e76b9.
> >>>>
> >>>> This is not the only user of this API, no?
> >>>>
> >>>> I have a question for my own curiosity. This is ABI (and API) breaking
> >>>> change,
> >>>
> >>> It is not. This item was not guaranteed to be set, which was actually
> >>> the reason I wrote the patch that this one refers to.

It has never been marked as optional and while one can argue that it
was not marked as required either this ambiguity would be interpreted
that item_name is available by most. Moreover this is further
solidified by the first-party tools that made this assumption for more
than a decade.

I don't want to argue about technicalities and semantics, or whether
it is (was) required field. My point is that it is breaking change
that affects 3rd-party code and 1st-party code too.

You fixed log.c, but the exact same issue can be found in ffprobe.c
today. See https://github.com/FFmpeg/FFmpeg/blob/4fee63b241e0dd254436bf38df8b0635b2b666d8/fftools/ffprobe.c#L371
(and L385)

And by code search on github I could find more projects that are
affected. Some have directly copied previous version of the callback
from log.c.

> >> There is no problem to relax a restriction inside libavutil. However, since there is
> >> no explicit documentation on whether item_name can be null or not, user may make
> >> incorrect assumptions and depend on item_name not being null. I don’t think break
> >> user’s code suddenly is a good idea, although we can say it’s break since the beginning.
> >
> > My point is that the restriction never existed.
>
> I’m not argue against this.
>
> > There were always
> > AVClass instances that did not set that pointer. There were fewer of
> > them, but they did exist.
>
> acf63d5350adeae551d412db699f8ca03f7e76b9 just shows that even libavutil can make
> that incorrect assumption, we cannot expect more from users. If user’s code don’t trigger
> those instances with null pointer, it works from user’s viewpoint. It’s hard to believe that
> the bug found in MPV doesn’t exist in other  projects. We need another method to make
> such change smoothly.

Thanks, I couldn't summarize this better.

> >
> > --
> > Anton Khirnov
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel@ffmpeg.org <mailto:ffmpeg-devel@ffmpeg.org>
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-devel-request@ffmpeg.org <mailto:ffmpeg-devel-request@ffmpeg.org> with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
Marton Balint Dec. 28, 2023, 11:42 p.m. UTC | #11
On Mon, 25 Dec 2023, Anton Khirnov wrote:

> Quoting Zhao Zhili (2023-12-25 10:27:59)
>> 
>> 
>> > On Dec 25, 2023, at 16:38, Anton Khirnov <anton@khirnov.net> wrote:
>> > 
>> > Quoting Kacper Michajlow (2023-12-24 11:41:52)
>> >> On Fri, 22 Dec 2023 at 14:57, Anton Khirnov <anton@khirnov.net> wrote:
>> >>> 
>> >>> Quoting Andreas Rheinhardt (2023-12-22 14:48:45)
>> >>>> Avoids relocations.
>> >>>> 
>> >>>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
>> >>>> ---
>> >>> 
>> >>> Maybe mention that it's not needed after
>> >>> acf63d5350adeae551d412db699f8ca03f7e76b9.
>> >> 
>> >> This is not the only user of this API, no?
>> >> 
>> >> I have a question for my own curiosity. This is ABI (and API) breaking
>> >> change,
>> > 
>> > It is not. This item was not guaranteed to be set, which was actually
>> > the reason I wrote the patch that this one refers to.
>> 
>> There is no problem to relax a restriction inside libavutil. However, since there is
>> no explicit documentation on whether item_name can be null or not, user may make
>> incorrect assumptions and depend on item_name not being null. I don’t think break
>> user’s code suddenly is a good idea, although we can say it’s break since the beginning.
>
> My point is that the restriction never existed. There were always
> AVClass instances that did not set that pointer. There were fewer of
> them, but they did exist.

I could just as easily make the argument that these AVClasses were not 
following the documentation. AVClass is documented in avutil/log.h. We 
should document if a field can be NULL, this was clearly not done here. 
Because of that, we should assume what most of the codebase assumed.

Considering the amount of stuff this breaks, this patch should be 
reverted, AVClass->item_name deperecated, item_name_func added and 
explicitly documented that it may be NULL.

Regards,
Marton
Zhao Zhili Dec. 29, 2023, 2:01 a.m. UTC | #12
> 在 2023年12月29日,上午7:42,Marton Balint <cus@passwd.hu> 写道:
> 
> 
> 
>> On Mon, 25 Dec 2023, Anton Khirnov wrote:
>> 
>> Quoting Zhao Zhili (2023-12-25 10:27:59)
>>> > On Dec 25, 2023, at 16:38, Anton Khirnov <anton@khirnov.net> wrote:
>>> > > Quoting Kacper Michajlow (2023-12-24 11:41:52)
>>> >> On Fri, 22 Dec 2023 at 14:57, Anton Khirnov <anton@khirnov.net> wrote:
>>> >>> >>> Quoting Andreas Rheinhardt (2023-12-22 14:48:45)
>>> >>>> Avoids relocations.
>>> >>>> >>>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
>>> >>>> ---
>>> >>> >>> Maybe mention that it's not needed after
>>> >>> acf63d5350adeae551d412db699f8ca03f7e76b9.
>>> >> >> This is not the only user of this API, no?
>>> >> >> I have a question for my own curiosity. This is ABI (and API) breaking
>>> >> change,
>>> > > It is not. This item was not guaranteed to be set, which was actually
>>> > the reason I wrote the patch that this one refers to.
>>> There is no problem to relax a restriction inside libavutil. However, since there is
>>> no explicit documentation on whether item_name can be null or not, user may make
>>> incorrect assumptions and depend on item_name not being null. I don’t think break
>>> user’s code suddenly is a good idea, although we can say it’s break since the beginning.
>> 
>> My point is that the restriction never existed. There were always
>> AVClass instances that did not set that pointer. There were fewer of
>> them, but they did exist.
> 
> I could just as easily make the argument that these AVClasses were not following the documentation. AVClass is documented in avutil/log.h. We should document if a field can be NULL, this was clearly not done here. Because of that, we should assume what most of the codebase assumed.
> 
> Considering the amount of stuff this breaks, this patch should be reverted,

Agree.

> AVClass->item_name deperecated, item_name_func added and explicitly documented that it may be NULL.

Consider the beneficial of a nullable item_name_func isn't that dramatic, I’m not sure if it worth to force user to do such change. Fix those few avclass instance is user friendly in my opinion.

> 
> Regards,
> Marton
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox series

Patch

diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c
index bdda93a569..679caf8f37 100644
--- a/fftools/ffmpeg_mux_init.c
+++ b/fftools/ffmpeg_mux_init.c
@@ -2231,7 +2231,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,
     };
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index 91ae71ff27..9e86d91a92 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -322,7 +322,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,
     };
diff --git a/fftools/ffplay_renderer.c b/fftools/ffplay_renderer.c
index 45ca84fa95..4e9e33b675 100644
--- a/fftools/ffplay_renderer.c
+++ b/fftools/ffplay_renderer.c
@@ -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,
 };
 
diff --git a/fftools/opt_common.c b/fftools/opt_common.c
index 02d7048c42..f5b73c9f2f 100644
--- a/fftools/opt_common.c
+++ b/fftools/opt_common.c
@@ -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,
     };
diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c
index 2b3509c85f..9975805573 100644
--- a/libavcodec/aacdec_template.c
+++ b/libavcodec/aacdec_template.c
@@ -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,
 };
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 83c23cc2de..20d42a627b 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -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,
 };
diff --git a/libavcodec/ac3dec_fixed.c b/libavcodec/ac3dec_fixed.c
index c9e5cda69c..cdab83d647 100644
--- a/libavcodec/ac3dec_fixed.c
+++ b/libavcodec/ac3dec_fixed.c
@@ -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,
 };
diff --git a/libavcodec/ac3dec_float.c b/libavcodec/ac3dec_float.c
index 39d3cbd282..c49ee2d94d 100644
--- a/libavcodec/ac3dec_float.c
+++ b/libavcodec/ac3dec_float.c
@@ -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,
 };
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index 56c8d239c5..df76dda6ee 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -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,
 };
diff --git a/libavcodec/adpcmenc.c b/libavcodec/adpcmenc.c
index 63afffc58f..7f18fc2daf 100644
--- a/libavcodec/adpcmenc.c
+++ b/libavcodec/adpcmenc.c
@@ -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,
 };
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 538d1e5984..18791d426d 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -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,
 };
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c
index 9598e5861e..c28c2577f4 100644
--- a/libavcodec/alacenc.c
+++ b/libavcodec/alacenc.c
@@ -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,
 };
diff --git a/libavcodec/amfenc_av1.c b/libavcodec/amfenc_av1.c
index 3f164ccc59..949251d4e8 100644
--- a/libavcodec/amfenc_av1.c
+++ b/libavcodec/amfenc_av1.c
@@ -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,
 };
diff --git a/libavcodec/amfenc_h264.c b/libavcodec/amfenc_h264.c
index bd544d12df..a6b82365ad 100644
--- a/libavcodec/amfenc_h264.c
+++ b/libavcodec/amfenc_h264.c
@@ -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,
 };
diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c
index 352564a301..9db01db28d 100644
--- a/libavcodec/amfenc_hevc.c
+++ b/libavcodec/amfenc_hevc.c
@@ -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,
 };
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index d31c067152..988f23d8bb 100644
--- a/libavcodec/apedec.c
+++ b/libavcodec/apedec.c
@@ -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,
 };
diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c
index 42ab7ae6e4..ba3867f358 100644
--- a/libavcodec/audiotoolboxenc.c
+++ b/libavcodec/audiotoolboxenc.c
@@ -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, \
     };
diff --git a/libavcodec/av1_metadata_bsf.c b/libavcodec/av1_metadata_bsf.c
index 41b02cc836..494245f333 100644
--- a/libavcodec/av1_metadata_bsf.c
+++ b/libavcodec/av1_metadata_bsf.c
@@ -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,
 };
diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index 7ffa7821e9..da05a0f039 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -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,
 };
diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index 1d9ac5ab44..accea49828 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -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,
 };
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index f91c92b373..5a69d9216b 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -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,
 };
diff --git a/libavcodec/cfhdenc.c b/libavcodec/cfhdenc.c
index f447438491..75f41e701b 100644
--- a/libavcodec/cfhdenc.c
+++ b/libavcodec/cfhdenc.c
@@ -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,
 };
diff --git a/libavcodec/cinepakenc.c b/libavcodec/cinepakenc.c
index f15325ad0d..6bf5485871 100644
--- a/libavcodec/cinepakenc.c
+++ b/libavcodec/cinepakenc.c
@@ -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,
 };
diff --git a/libavcodec/cljrenc.c b/libavcodec/cljrenc.c
index 31ad5ce0cf..ee03dd3e2e 100644
--- a/libavcodec/cljrenc.c
+++ b/libavcodec/cljrenc.c
@@ -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,
 };
diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c
index 86f6cfa6c1..e419d8e3ce 100644
--- a/libavcodec/crystalhd.c
+++ b/libavcodec/crystalhd.c
@@ -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, \
     }; \
diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c
index da37207cf2..02022148e0 100644
--- a/libavcodec/cuviddec.c
+++ b/libavcodec/cuviddec.c
@@ -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, \
     }; \
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index cc23731b90..cf12124a58 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -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,
diff --git a/libavcodec/dcaenc.c b/libavcodec/dcaenc.c
index c731d79381..2b034b5648 100644
--- a/libavcodec/dcaenc.c
+++ b/libavcodec/dcaenc.c
@@ -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,
 };
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index f52a2e9918..aa273b5c60 100644
--- a/libavcodec/dnxhdenc.c
+++ b/libavcodec/dnxhdenc.c
@@ -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,
 };
diff --git a/libavcodec/dolby_e.c b/libavcodec/dolby_e.c
index b8dac0fa3f..c80cf3ae62 100644
--- a/libavcodec/dolby_e.c
+++ b/libavcodec/dolby_e.c
@@ -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,
 };
diff --git a/libavcodec/dump_extradata_bsf.c b/libavcodec/dump_extradata_bsf.c
index 5506d5ed65..373fc9dad8 100644
--- a/libavcodec/dump_extradata_bsf.c
+++ b/libavcodec/dump_extradata_bsf.c
@@ -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,
 };
diff --git a/libavcodec/dv_error_marker_bsf.c b/libavcodec/dv_error_marker_bsf.c
index 131c6fcbe6..19ac936e05 100644
--- a/libavcodec/dv_error_marker_bsf.c
+++ b/libavcodec/dv_error_marker_bsf.c
@@ -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,
 };
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index bcc607d1d7..ad05aa0bf3 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -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,
 };
diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c
index a5da0d7b08..11c3cc5e35 100644
--- a/libavcodec/dvdsubdec.c
+++ b/libavcodec/dvdsubdec.c
@@ -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,
 };
diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c
index 06c2cf5e5a..12745ae40b 100644
--- a/libavcodec/dvdsubenc.c
+++ b/libavcodec/dvdsubenc.c
@@ -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,
 };
diff --git a/libavcodec/dvenc.c b/libavcodec/dvenc.c
index ce21247081..f0820bb2ee 100644
--- a/libavcodec/dvenc.c
+++ b/libavcodec/dvenc.c
@@ -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,
 };
diff --git a/libavcodec/eac3enc.c b/libavcodec/eac3enc.c
index 4b3236d4e5..afadd77345 100644
--- a/libavcodec/eac3enc.c
+++ b/libavcodec/eac3enc.c
@@ -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,
 };
diff --git a/libavcodec/evrcdec.c b/libavcodec/evrcdec.c
index af7640d7e1..9de8b8a771 100644
--- a/libavcodec/evrcdec.c
+++ b/libavcodec/evrcdec.c
@@ -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,
 };
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index b30d3b7404..a05f8bada6 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -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,
 };
diff --git a/libavcodec/exrenc.c b/libavcodec/exrenc.c
index 36327f498c..ded7fad18b 100644
--- a/libavcodec/exrenc.c
+++ b/libavcodec/exrenc.c
@@ -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,
 };
diff --git a/libavcodec/extract_extradata_bsf.c b/libavcodec/extract_extradata_bsf.c
index baa629295f..aee63d1b5d 100644
--- a/libavcodec/extract_extradata_bsf.c
+++ b/libavcodec/extract_extradata_bsf.c
@@ -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,
 };
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index 2778c63012..5bd00f5d9e 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -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,
 };
diff --git a/libavcodec/fic.c b/libavcodec/fic.c
index fb99802137..ddda8effe0 100644
--- a/libavcodec/fic.c
+++ b/libavcodec/fic.c
@@ -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,
 };
diff --git a/libavcodec/filter_units_bsf.c b/libavcodec/filter_units_bsf.c
index 9336753148..a67d55e57f 100644
--- a/libavcodec/filter_units_bsf.c
+++ b/libavcodec/filter_units_bsf.c
@@ -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,
 };
diff --git a/libavcodec/fitsdec.c b/libavcodec/fitsdec.c
index 284e945ba5..c1d0bd9ca6 100644
--- a/libavcodec/fitsdec.c
+++ b/libavcodec/fitsdec.c
@@ -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,
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index ed2de14d0a..95aee363f4 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -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,
 };
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index a449b73235..605e5db974 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -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,
 };
diff --git a/libavcodec/frwu.c b/libavcodec/frwu.c
index 70bc136765..fc6b7058af 100644
--- a/libavcodec/frwu.c
+++ b/libavcodec/frwu.c
@@ -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,
 };
diff --git a/libavcodec/g722dec.c b/libavcodec/g722dec.c
index 231f1d32eb..9f40e0b740 100644
--- a/libavcodec/g722dec.c
+++ b/libavcodec/g722dec.c
@@ -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,
 };
diff --git a/libavcodec/g723_1dec.c b/libavcodec/g723_1dec.c
index 5fe4a21d9b..4c8ebc9075 100644
--- a/libavcodec/g723_1dec.c
+++ b/libavcodec/g723_1dec.c
@@ -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,
 };
diff --git a/libavcodec/g726.c b/libavcodec/g726.c
index 6c5638760d..f25e60b21b 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -388,7 +388,6 @@  static const AVOption options[] = {
 
 static const AVClass g726_class = {
     .class_name = "g726",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index 11add64468..2a132fb18c 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -542,7 +542,6 @@  static const AVOption gif_options[] = {
 
 static const AVClass gif_class = {
     .class_name = "GIF encoder",
-    .item_name  = av_default_item_name,
     .option     = gif_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index a97a6d15fc..f99eaff73b 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -542,7 +542,6 @@  static const AVOption options[] = {
 
 static const AVClass decoder_class = {
     .class_name = "gif decoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DECODER,
diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c
index 39b9e8eee4..9a745b056b 100644
--- a/libavcodec/h264_metadata_bsf.c
+++ b/libavcodec/h264_metadata_bsf.c
@@ -703,7 +703,6 @@  static const AVOption h264_metadata_options[] = {
 
 static const AVClass h264_metadata_class = {
     .class_name = "h264_metadata_bsf",
-    .item_name  = av_default_item_name,
     .option     = h264_metadata_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index 9f5893c512..2c0cdf919d 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -1104,7 +1104,6 @@  static const AVOption h264_options[] = {
 
 static const AVClass h264_class = {
     .class_name = "H264 Decoder",
-    .item_name  = av_default_item_name,
     .option     = h264_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/h265_metadata_bsf.c b/libavcodec/h265_metadata_bsf.c
index 6787bd14a1..4fdd2a532e 100644
--- a/libavcodec/h265_metadata_bsf.c
+++ b/libavcodec/h265_metadata_bsf.c
@@ -483,7 +483,6 @@  static const AVOption h265_metadata_options[] = {
 
 static const AVClass h265_metadata_class = {
     .class_name = "h265_metadata_bsf",
-    .item_name  = av_default_item_name,
     .option     = h265_metadata_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/h266_metadata_bsf.c b/libavcodec/h266_metadata_bsf.c
index 1f0f875cfe..09e91dd80d 100644
--- a/libavcodec/h266_metadata_bsf.c
+++ b/libavcodec/h266_metadata_bsf.c
@@ -130,7 +130,6 @@  static const AVOption h266_metadata_options[] = {
 
 static const AVClass h266_metadata_class = {
     .class_name = "h266_metadata_bsf",
-    .item_name  = av_default_item_name,
     .option     = h266_metadata_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/hapenc.c b/libavcodec/hapenc.c
index 7de7358e3d..eb492c9db5 100644
--- a/libavcodec/hapenc.c
+++ b/libavcodec/hapenc.c
@@ -341,7 +341,6 @@  static const AVOption options[] = {
 
 static const AVClass hapenc_class = {
     .class_name = "Hap encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/hapqa_extract_bsf.c b/libavcodec/hapqa_extract_bsf.c
index 0d9b40aaa6..cf6872fe2d 100644
--- a/libavcodec/hapqa_extract_bsf.c
+++ b/libavcodec/hapqa_extract_bsf.c
@@ -120,7 +120,6 @@  static const AVOption options[] = {
 
 static const AVClass hapqa_extract_class = {
     .class_name = "hapqa_extract_bsf",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index b5311ae510..f21d15fe72 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -3676,7 +3676,6 @@  static const AVOption options[] = {
 
 static const AVClass hevc_decoder_class = {
     .class_name = "HEVC decoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c
index b02b3c7a9a..73f543ac24 100644
--- a/libavcodec/huffyuvenc.c
+++ b/libavcodec/huffyuvenc.c
@@ -1066,14 +1066,12 @@  static const AVOption ff_options[] = {
 
 static const AVClass normal_class = {
     .class_name = "huffyuv",
-    .item_name  = av_default_item_name,
     .option     = normal_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
 static const AVClass ff_class = {
     .class_name = "ffvhuff",
-    .item_name  = av_default_item_name,
     .option     = ff_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/ituh263enc.c b/libavcodec/ituh263enc.c
index 97abfb3f45..6acb13299a 100644
--- a/libavcodec/ituh263enc.c
+++ b/libavcodec/ituh263enc.c
@@ -896,7 +896,6 @@  static const AVOption h263_options[] = {
 
 static const AVClass h263_class = {
     .class_name = "H.263 encoder",
-    .item_name  = av_default_item_name,
     .option     = h263_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -927,7 +926,6 @@  static const AVOption h263p_options[] = {
 };
 static const AVClass h263p_class = {
     .class_name = "H.263p encoder",
-    .item_name  = av_default_item_name,
     .option     = h263p_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
index 5f95b772d1..e0eb73281a 100644
--- a/libavcodec/j2kenc.c
+++ b/libavcodec/j2kenc.c
@@ -1827,7 +1827,6 @@  static const AVOption options[] = {
 
 static const AVClass j2k_class = {
     .class_name = "jpeg 2000 encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index 691cfbd891..6e662761b0 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -2543,7 +2543,6 @@  static const AVOption options[] = {
 
 static const AVClass jpeg2000_class = {
     .class_name = "jpeg2000",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/jpeglsenc.c b/libavcodec/jpeglsenc.c
index 53394102df..89488d35cb 100644
--- a/libavcodec/jpeglsenc.c
+++ b/libavcodec/jpeglsenc.c
@@ -466,7 +466,6 @@  static const AVOption options[] = {
 
 static const AVClass jpegls_class = {
     .class_name = "jpegls",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
index aa800834fe..5d286fc98b 100644
--- a/libavcodec/libaomenc.c
+++ b/libavcodec/libaomenc.c
@@ -1546,7 +1546,6 @@  static const FFCodecDefault defaults[] = {
 
 static const AVClass class_aom = {
     .class_name = "libaom-av1 encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libaribb24.c b/libavcodec/libaribb24.c
index 29479e375d..0706b50c1c 100644
--- a/libavcodec/libaribb24.c
+++ b/libavcodec/libaribb24.c
@@ -387,7 +387,6 @@  static const AVOption options[] = {
 
 static const AVClass aribb24_class = {
     .class_name = "libaribb24 decoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libaribcaption.c b/libavcodec/libaribcaption.c
index e87f303aa8..b32d87d5a6 100644
--- a/libavcodec/libaribcaption.c
+++ b/libavcodec/libaribcaption.c
@@ -1161,7 +1161,6 @@  static const AVOption options[] = {
 
 static const AVClass aribcaption_class = {
     .class_name = "aribcaption decoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libcodec2.c b/libavcodec/libcodec2.c
index 83f68e85c7..950d48685e 100644
--- a/libavcodec/libcodec2.c
+++ b/libavcodec/libcodec2.c
@@ -43,7 +43,6 @@  static const AVOption options[] = {
 
 static const AVClass libcodec2_enc_class = {
     .class_name = "libcodec2 encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index 11cdbca274..3a35bd1825 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -682,7 +682,6 @@  static const AVOption libdav1d_options[] = {
 
 static const AVClass libdav1d_class = {
     .class_name = "libdav1d decoder",
-    .item_name  = av_default_item_name,
     .option     = libdav1d_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libfdk-aacdec.c b/libavcodec/libfdk-aacdec.c
index 8c1586e25e..6b201b64ee 100644
--- a/libavcodec/libfdk-aacdec.c
+++ b/libavcodec/libfdk-aacdec.c
@@ -105,7 +105,6 @@  static const AVOption fdk_aac_dec_options[] = {
 
 static const AVClass fdk_aac_dec_class = {
     .class_name = "libfdk-aac decoder",
-    .item_name  = av_default_item_name,
     .option     = fdk_aac_dec_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c
index d400ac2e7c..fac720b12f 100644
--- a/libavcodec/libfdk-aacenc.c
+++ b/libavcodec/libfdk-aacenc.c
@@ -86,7 +86,6 @@  static const AVOption aac_enc_options[] = {
 
 static const AVClass aac_enc_class = {
     .class_name = "libfdk_aac",
-    .item_name  = av_default_item_name,
     .option     = aac_enc_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libilbc.c b/libavcodec/libilbc.c
index 9ca90bf0c6..031f67c9bc 100644
--- a/libavcodec/libilbc.c
+++ b/libavcodec/libilbc.c
@@ -62,7 +62,6 @@  static const AVOption ilbc_dec_options[] = {
 
 static const AVClass ilbc_dec_class = {
     .class_name = "libilbc",
-    .item_name  = av_default_item_name,
     .option     = ilbc_dec_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -147,7 +146,6 @@  static const AVOption ilbc_enc_options[] = {
 
 static const AVClass ilbc_enc_class = {
     .class_name = "libilbc",
-    .item_name  = av_default_item_name,
     .option     = ilbc_enc_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libjxlenc.c b/libavcodec/libjxlenc.c
index 021e558687..0c9ce7bad1 100644
--- a/libavcodec/libjxlenc.c
+++ b/libavcodec/libjxlenc.c
@@ -471,7 +471,6 @@  static const AVOption libjxl_encode_options[] = {
 
 static const AVClass libjxl_encode_class = {
     .class_name = "libjxl",
-    .item_name  = av_default_item_name,
     .option     = libjxl_encode_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c
index 0711d9ab38..8d52df142d 100644
--- a/libavcodec/libkvazaar.c
+++ b/libavcodec/libkvazaar.c
@@ -316,7 +316,6 @@  static const AVOption options[] = {
 
 static const AVClass class = {
     .class_name = "libkvazaar",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index 312bc4230f..4ad03900e8 100644
--- a/libavcodec/libmp3lame.c
+++ b/libavcodec/libmp3lame.c
@@ -321,7 +321,6 @@  static const AVOption options[] = {
 
 static const AVClass libmp3lame_class = {
     .class_name = "libmp3lame encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index 641a156129..73b623b6e7 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -190,7 +190,6 @@  static const AVOption options[] = {
 
 static const AVClass amrnb_class = {
     .class_name = "libopencore_amrnb",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
index 6f231d22b2..4d303cd9e7 100644
--- a/libavcodec/libopenh264enc.c
+++ b/libavcodec/libopenh264enc.c
@@ -90,7 +90,6 @@  static const AVOption options[] = {
 
 static const AVClass class = {
     .class_name = "libopenh264enc",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libopenjpegenc.c b/libavcodec/libopenjpegenc.c
index 009c7a4377..e9aa5b9649 100644
--- a/libavcodec/libopenjpegenc.c
+++ b/libavcodec/libopenjpegenc.c
@@ -749,7 +749,6 @@  static const AVOption options[] = {
 
 static const AVClass openjpeg_class = {
     .class_name = "libopenjpeg",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libopusdec.c b/libavcodec/libopusdec.c
index 9b9a610343..a1e47fd06c 100644
--- a/libavcodec/libopusdec.c
+++ b/libavcodec/libopusdec.c
@@ -225,7 +225,6 @@  static const AVOption libopusdec_options[] = {
 
 static const AVClass libopusdec_class = {
     .class_name = "libopusdec",
-    .item_name  = av_default_item_name,
     .option     = libopusdec_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libopusenc.c b/libavcodec/libopusenc.c
index f395d84af5..1ab954f06a 100644
--- a/libavcodec/libopusenc.c
+++ b/libavcodec/libopusenc.c
@@ -564,7 +564,6 @@  static const AVOption libopus_options[] = {
 
 static const AVClass libopus_class = {
     .class_name = "libopus",
-    .item_name  = av_default_item_name,
     .option     = libopus_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/librav1e.c b/libavcodec/librav1e.c
index 56539435a7..68bf16232a 100644
--- a/libavcodec/librav1e.c
+++ b/libavcodec/librav1e.c
@@ -667,7 +667,6 @@  const enum AVPixelFormat librav1e_pix_fmts[] = {
 
 static const AVClass class = {
     .class_name = "librav1e",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/librsvgdec.c b/libavcodec/librsvgdec.c
index c328fbc774..25d707e1a5 100644
--- a/libavcodec/librsvgdec.c
+++ b/libavcodec/librsvgdec.c
@@ -156,7 +156,6 @@  static const AVOption options[] = {
 
 static const AVClass librsvg_decoder_class = {
     .class_name = "Librsvg",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libspeexenc.c b/libavcodec/libspeexenc.c
index 9fdb247863..3180a93150 100644
--- a/libavcodec/libspeexenc.c
+++ b/libavcodec/libspeexenc.c
@@ -330,7 +330,6 @@  static const AVOption options[] = {
 
 static const AVClass speex_class = {
     .class_name = "libspeex",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
index 862192945b..0679daad37 100644
--- a/libavcodec/libsvtav1.c
+++ b/libavcodec/libsvtav1.c
@@ -671,7 +671,6 @@  static const AVOption options[] = {
 
 static const AVClass class = {
     .class_name = "libsvtav1",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libtwolame.c b/libavcodec/libtwolame.c
index 9c0156aa25..bedb2e1fed 100644
--- a/libavcodec/libtwolame.c
+++ b/libavcodec/libtwolame.c
@@ -194,7 +194,6 @@  static const AVOption options[] = {
 
 static const AVClass twolame_class = {
     .class_name = "libtwolame encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libvo-amrwbenc.c b/libavcodec/libvo-amrwbenc.c
index 02b8941a6d..a802ccdcf8 100644
--- a/libavcodec/libvo-amrwbenc.c
+++ b/libavcodec/libvo-amrwbenc.c
@@ -47,7 +47,6 @@  static const AVOption options[] = {
 
 static const AVClass amrwb_class = {
     .class_name = "libvo_amrwbenc",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libvorbisenc.c b/libavcodec/libvorbisenc.c
index 6331cf0d79..dedc43563b 100644
--- a/libavcodec/libvorbisenc.c
+++ b/libavcodec/libvorbisenc.c
@@ -67,7 +67,6 @@  static const FFCodecDefault defaults[] = {
 
 static const AVClass vorbis_class = {
     .class_name = "libvorbis",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 80988a2608..7ad399eb9c 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -2023,7 +2023,6 @@  static av_cold int vp8_init(AVCodecContext *avctx)
 
 static const AVClass class_vp8 = {
     .class_name = "libvpx-vp8 encoder",
-    .item_name  = av_default_item_name,
     .option     = vp8_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -2096,7 +2095,6 @@  static av_cold void vp9_init_static(FFCodec *codec)
 
 static const AVClass class_vp9 = {
     .class_name = "libvpx-vp9 encoder",
-    .item_name  = av_default_item_name,
     .option     = vp9_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libwebpenc_common.c b/libavcodec/libwebpenc_common.c
index 761219e50e..da9d41622e 100644
--- a/libavcodec/libwebpenc_common.c
+++ b/libavcodec/libwebpenc_common.c
@@ -53,7 +53,6 @@  static const AVOption options[] = {
 
 const AVClass ff_libwebpenc_class = {
     .class_name = "libwebp encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 182e20f622..5ea9540d30 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -1462,7 +1462,6 @@  static const FFCodecDefault x264_defaults[] = {
 #if CONFIG_LIBX264_ENCODER
 static const AVClass x264_class = {
     .class_name = "libx264",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -1504,7 +1503,6 @@  FFCodec ff_libx264_encoder = {
 #if CONFIG_LIBX264RGB_ENCODER
 static const AVClass rgbclass = {
     .class_name = "libx264rgb",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -1536,7 +1534,6 @@  const FFCodec ff_libx264rgb_encoder = {
 #if CONFIG_LIBX262_ENCODER
 static const AVClass X262_class = {
     .class_name = "libx262",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
index 447e6da25f..7f4552f685 100644
--- a/libavcodec/libx265.c
+++ b/libavcodec/libx265.c
@@ -873,7 +873,6 @@  static const AVOption options[] = {
 
 static const AVClass class = {
     .class_name = "libx265",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libxavs.c b/libavcodec/libxavs.c
index 6c29539f24..0e0ec32b8c 100644
--- a/libavcodec/libxavs.c
+++ b/libavcodec/libxavs.c
@@ -411,7 +411,6 @@  static const AVOption options[] = {
 
 static const AVClass xavs_class = {
     .class_name = "libxavs",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c
index c493ddc325..bf2b08a60c 100644
--- a/libavcodec/libxavs2.c
+++ b/libavcodec/libxavs2.c
@@ -274,7 +274,6 @@  static const AVOption options[] = {
 
 static const AVClass libxavs2 = {
     .class_name = "XAVS2EContext",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libxevd.c b/libavcodec/libxevd.c
index 58ef90d929..5dec91ee23 100644
--- a/libavcodec/libxevd.c
+++ b/libavcodec/libxevd.c
@@ -517,7 +517,6 @@  static av_cold int libxevd_close(AVCodecContext *avctx)
 
 static const AVClass libxevd_class = {
     .class_name = "libxevd",
-    .item_name  = av_default_item_name,
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
diff --git a/libavcodec/libxeve.c b/libavcodec/libxeve.c
index c10b7de023..b71d14f1df 100644
--- a/libavcodec/libxeve.c
+++ b/libavcodec/libxeve.c
@@ -580,7 +580,6 @@  static const AVOption libxeve_options[] = {
 
 static const AVClass libxeve_class = {
     .class_name = "libxeve",
-    .item_name  = av_default_item_name,
     .option     = libxeve_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libxvid.c b/libavcodec/libxvid.c
index aba875b6b8..72577f5b6a 100644
--- a/libavcodec/libxvid.c
+++ b/libavcodec/libxvid.c
@@ -892,7 +892,6 @@  static const AVOption options[] = {
 
 static const AVClass xvid_class = {
     .class_name = "libxvid",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c
index 45e30eb01c..878027275f 100644
--- a/libavcodec/libzvbi-teletextdec.c
+++ b/libavcodec/libzvbi-teletextdec.c
@@ -806,7 +806,6 @@  static const AVOption options[] = {
 
 static const AVClass teletext_class = {
     .class_name = "libzvbi_teletextdec",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c
index aa62beac71..c3031631a2 100644
--- a/libavcodec/ljpegenc.c
+++ b/libavcodec/ljpegenc.c
@@ -306,7 +306,6 @@  static const AVOption options[] = {
 
 static const AVClass ljpeg_class = {
     .class_name = "ljpeg",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/magicyuvenc.c b/libavcodec/magicyuvenc.c
index ccd6a54936..a74212086b 100644
--- a/libavcodec/magicyuvenc.c
+++ b/libavcodec/magicyuvenc.c
@@ -666,7 +666,6 @@  static const AVOption options[] = {
 
 static const AVClass magicyuv_class = {
     .class_name = "magicyuv",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c
index 0880ddd3ef..f2fb392329 100644
--- a/libavcodec/mediacodec_wrapper.c
+++ b/libavcodec/mediacodec_wrapper.c
@@ -136,7 +136,6 @@  static const struct FFJniField jni_amediaformat_mapping[] = {
 
 static const AVClass amediaformat_class = {
     .class_name = "amediaformat",
-    .item_name  = av_default_item_name,
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
@@ -256,7 +255,6 @@  static const struct FFJniField jni_amediacodec_mapping[] = {
 
 static const AVClass amediacodec_class = {
     .class_name = "amediacodec",
-    .item_name  = av_default_item_name,
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
@@ -1989,13 +1987,11 @@  static const FFAMediaCodec media_codec_ndk;
 
 static const AVClass amediaformat_ndk_class = {
     .class_name = "amediaformat_ndk",
-    .item_name  = av_default_item_name,
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
 static const AVClass amediacodec_ndk_class = {
     .class_name = "amediacodec_ndk",
-    .item_name  = av_default_item_name,
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c
index b8587289a2..9698bd2079 100644
--- a/libavcodec/mediacodecdec.c
+++ b/libavcodec/mediacodecdec.c
@@ -558,7 +558,6 @@  static const AVOption ff_mediacodec_vdec_options[] = {
 #define DECLARE_MEDIACODEC_VCLASS(short_name)                   \
 static const AVClass ff_##short_name##_mediacodec_dec_class = { \
     .class_name = #short_name "_mediacodec",                    \
-    .item_name  = av_default_item_name,                         \
     .option     = ff_mediacodec_vdec_options,                   \
     .version    = LIBAVUTIL_VERSION_INT,                        \
 };
diff --git a/libavcodec/mediacodecenc.c b/libavcodec/mediacodecenc.c
index 7eae542248..cab0189a9f 100644
--- a/libavcodec/mediacodecenc.c
+++ b/libavcodec/mediacodecenc.c
@@ -607,7 +607,6 @@  static const AVCodecHWConfigInternal *const mediacodec_hw_configs[] = {
 #define MEDIACODEC_ENCODER_CLASS(name)              \
 static const AVClass name ## _mediacodec_class = {  \
     .class_name = #name "_mediacodec",              \
-    .item_name  = av_default_item_name,             \
     .option     = name ## _options,                 \
     .version    = LIBAVUTIL_VERSION_INT,            \
 };                                                  \
diff --git a/libavcodec/mfenc.c b/libavcodec/mfenc.c
index 3c50a6c074..8bb6f1d38d 100644
--- a/libavcodec/mfenc.c
+++ b/libavcodec/mfenc.c
@@ -1226,7 +1226,6 @@  static int mf_init(AVCodecContext *avctx)
 #define MF_ENCODER(MEDIATYPE, NAME, ID, OPTS, FMTS, CAPS) \
     static const AVClass ff_ ## NAME ## _mf_encoder_class = {                  \
         .class_name = #NAME "_mf",                                             \
-        .item_name  = av_default_item_name,                                    \
         .option     = OPTS,                                                    \
         .version    = LIBAVUTIL_VERSION_INT,                                   \
     };                                                                         \
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 8676155ecf..d78b5453a5 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -2991,7 +2991,6 @@  static const AVOption options[] = {
 
 static const AVClass mjpegdec_class = {
     .class_name = "MJPEG decoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index 508772987f..c3b4723391 100644
--- a/libavcodec/mjpegenc.c
+++ b/libavcodec/mjpegenc.c
@@ -637,7 +637,6 @@  FF_MPV_COMMON_OPTS
 #if CONFIG_MJPEG_ENCODER
 static const AVClass mjpeg_class = {
     .class_name = "mjpeg encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -667,7 +666,6 @@  const FFCodec ff_mjpeg_encoder = {
 #if CONFIG_AMV_ENCODER
 static const AVClass amv_class = {
     .class_name = "amv encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c
index ead5ecee76..5aac08504b 100644
--- a/libavcodec/mlpdec.c
+++ b/libavcodec/mlpdec.c
@@ -1444,14 +1444,12 @@  static const AVOption options[] = {
 
 static const AVClass mlp_decoder_class = {
     .class_name = "MLP decoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
 static const AVClass truehd_decoder_class = {
     .class_name = "TrueHD decoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index 895362faca..563f53ee34 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -2289,7 +2289,6 @@  static const AVOption mlp_options[] = {
 
 static const AVClass mlp_class = {
     .class_name = "mlpenc",
-    .item_name  = av_default_item_name,
     .option     = mlp_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 2dc7bbee04..c344d1f449 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -825,7 +825,6 @@  static const AVOption options[]={
 
 static const AVClass ffmmal_dec_class = {
     .class_name = "mmal_dec",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c
index f799252bf2..b82104d164 100644
--- a/libavcodec/movtextdec.c
+++ b/libavcodec/movtextdec.c
@@ -586,7 +586,6 @@  static const AVOption options[] = {
 
 static const AVClass mov_text_decoder_class = {
     .class_name = "MOV text decoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/movtextenc.c b/libavcodec/movtextenc.c
index 7aa74d7c9d..fc9ff2d7af 100644
--- a/libavcodec/movtextenc.c
+++ b/libavcodec/movtextenc.c
@@ -694,7 +694,6 @@  static const AVOption options[] = {
 
 static const AVClass mov_text_encoder_class = {
     .class_name = "MOV text enoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 0135623c0e..01d00a8147 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -1225,7 +1225,6 @@  static const AVOption mpeg2_options[] = {
 #define mpeg12_class(x)                                 \
 static const AVClass mpeg ## x ## _class = {            \
     .class_name = "mpeg" # x "video encoder",           \
-    .item_name  = av_default_item_name,                 \
     .option     = mpeg ## x ## _options,                \
     .version    = LIBAVUTIL_VERSION_INT,                \
 };
diff --git a/libavcodec/mpeg2_metadata_bsf.c b/libavcodec/mpeg2_metadata_bsf.c
index 1aa6e02791..d491242338 100644
--- a/libavcodec/mpeg2_metadata_bsf.c
+++ b/libavcodec/mpeg2_metadata_bsf.c
@@ -223,7 +223,6 @@  static const AVOption mpeg2_metadata_options[] = {
 
 static const AVClass mpeg2_metadata_class = {
     .class_name = "mpeg2_metadata_bsf",
-    .item_name  = av_default_item_name,
     .option     = mpeg2_metadata_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index 7e05f2eeca..7485c5618b 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -3847,7 +3847,6 @@  static const AVOption mpeg4_options[] = {
 
 static const AVClass mpeg4_class = {
     .class_name = "MPEG4 Video Decoder",
-    .item_name  = av_default_item_name,
     .option     = mpeg4_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/mpeg4videoenc.c b/libavcodec/mpeg4videoenc.c
index d1e50612dd..5f5b9aebc4 100644
--- a/libavcodec/mpeg4videoenc.c
+++ b/libavcodec/mpeg4videoenc.c
@@ -1388,7 +1388,6 @@  static const AVOption options[] = {
 
 static const AVClass mpeg4enc_class = {
     .class_name = "MPEG4 encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index fac9bb7ae7..d772a4a4cb 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -100,7 +100,6 @@  static const AVOption mpv_generic_options[] = {
 
 const AVClass ff_mpv_enc_class = {
     .class_name = "generic mpegvideo encoder",
-    .item_name  = av_default_item_name,
     .option     = mpv_generic_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/noise_bsf.c b/libavcodec/noise_bsf.c
index 7bdaa3c1db..3f2aaba5d9 100644
--- a/libavcodec/noise_bsf.c
+++ b/libavcodec/noise_bsf.c
@@ -220,7 +220,6 @@  static const AVOption options[] = {
 
 static const AVClass noise_class = {
     .class_name = "noise",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/nvenc_av1.c b/libavcodec/nvenc_av1.c
index 9f36796c4b..4be29b0273 100644
--- a/libavcodec/nvenc_av1.c
+++ b/libavcodec/nvenc_av1.c
@@ -167,7 +167,6 @@  static const FFCodecDefault defaults[] = {
 
 static const AVClass av1_nvenc_class = {
     .class_name = "av1_nvenc",
-    .item_name = av_default_item_name,
     .option = options,
     .version = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/nvenc_h264.c b/libavcodec/nvenc_h264.c
index 85a13634a3..8cad2cca99 100644
--- a/libavcodec/nvenc_h264.c
+++ b/libavcodec/nvenc_h264.c
@@ -233,7 +233,6 @@  static const FFCodecDefault defaults[] = {
 
 static const AVClass h264_nvenc_class = {
     .class_name = "h264_nvenc",
-    .item_name = av_default_item_name,
     .option = options,
     .version = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/nvenc_hevc.c b/libavcodec/nvenc_hevc.c
index 840df6da8a..388e5dd0cd 100644
--- a/libavcodec/nvenc_hevc.c
+++ b/libavcodec/nvenc_hevc.c
@@ -214,7 +214,6 @@  static const FFCodecDefault defaults[] = {
 
 static const AVClass hevc_nvenc_class = {
     .class_name = "hevc_nvenc",
-    .item_name = av_default_item_name,
     .option = options,
     .version = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/omx.c b/libavcodec/omx.c
index 82fd492071..a4c873120a 100644
--- a/libavcodec/omx.c
+++ b/libavcodec/omx.c
@@ -933,7 +933,6 @@  static const enum AVPixelFormat omx_encoder_pix_fmts[] = {
 
 static const AVClass omx_mpeg4enc_class = {
     .class_name = "mpeg4_omx",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -954,7 +953,6 @@  const FFCodec ff_mpeg4_omx_encoder = {
 
 static const AVClass omx_h264enc_class = {
     .class_name = "h264_omx",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/opus_metadata_bsf.c b/libavcodec/opus_metadata_bsf.c
index 2a0f86cec3..3b243c76ce 100644
--- a/libavcodec/opus_metadata_bsf.c
+++ b/libavcodec/opus_metadata_bsf.c
@@ -49,7 +49,6 @@  static const AVOption opus_metadata_options[] = {
 
 static const AVClass opus_metadata_class = {
     .class_name = "opus_metadata_bsf",
-    .item_name  = av_default_item_name,
     .option     = opus_metadata_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/opusdec.c b/libavcodec/opusdec.c
index c5f06e0600..f9c334247d 100644
--- a/libavcodec/opusdec.c
+++ b/libavcodec/opusdec.c
@@ -762,7 +762,6 @@  static const AVOption opus_options[] = {
 
 static const AVClass opus_class = {
     .class_name = "Opus Decoder",
-    .item_name  = av_default_item_name,
     .option     = opus_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/opusenc.c b/libavcodec/opusenc.c
index a2f74a347b..2b590d2b50 100644
--- a/libavcodec/opusenc.c
+++ b/libavcodec/opusenc.c
@@ -719,7 +719,6 @@  static const AVOption opusenc_options[] = {
 
 static const AVClass opusenc_class = {
     .class_name = "Opus encoder",
-    .item_name  = av_default_item_name,
     .option     = opusenc_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/pcm_rechunk_bsf.c b/libavcodec/pcm_rechunk_bsf.c
index 28b5722ac9..d5eb6e9858 100644
--- a/libavcodec/pcm_rechunk_bsf.c
+++ b/libavcodec/pcm_rechunk_bsf.c
@@ -187,7 +187,6 @@  static const AVOption options[] = {
 
 static const AVClass pcm_rechunk_class = {
     .class_name = "pcm_rechunk_bsf",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c
index 5f76f12615..26fdc2b964 100644
--- a/libavcodec/pgssubdec.c
+++ b/libavcodec/pgssubdec.c
@@ -684,7 +684,6 @@  static const AVOption options[] = {
 
 static const AVClass pgsdec_class = {
     .class_name = "PGS subtitle decoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/photocd.c b/libavcodec/photocd.c
index 07e8d460bd..64f8212e7f 100644
--- a/libavcodec/photocd.c
+++ b/libavcodec/photocd.c
@@ -454,7 +454,6 @@  static const AVOption options[] = {
 
 static const AVClass photocd_class = {
     .class_name = "photocd",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index f0650962d2..668d531ef6 100644
--- a/libavcodec/pngenc.c
+++ b/libavcodec/pngenc.c
@@ -1189,7 +1189,6 @@  static const AVOption options[] = {
 
 static const AVClass pngenc_class = {
     .class_name = "(A)PNG encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/prores_metadata_bsf.c b/libavcodec/prores_metadata_bsf.c
index fb001b38d7..18dac5424b 100644
--- a/libavcodec/prores_metadata_bsf.c
+++ b/libavcodec/prores_metadata_bsf.c
@@ -161,7 +161,6 @@  static const AVOption options[] = {
 
 static const AVClass prores_metadata_class = {
     .class_name = "prores_metadata_bsf",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index e7114f1646..a1cb46aa59 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -961,7 +961,6 @@  static const AVOption options[] = {
 
 static const AVClass prores_enc_class = {
     .class_name = "ProRes encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c
index 52fe5639b1..e904632f8e 100644
--- a/libavcodec/proresenc_kostya.c
+++ b/libavcodec/proresenc_kostya.c
@@ -1415,7 +1415,6 @@  static const AVOption options[] = {
 
 static const AVClass proresenc_class = {
     .class_name = "ProRes encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
index 559f63698a..e2db8701bb 100644
--- a/libavcodec/qsvdec.c
+++ b/libavcodec/qsvdec.c
@@ -1110,7 +1110,6 @@  static void qsv_decode_flush(AVCodecContext *avctx)
 #define DEFINE_QSV_DECODER_WITH_OPTION(x, X, bsf_name, opt) \
 static const AVClass x##_qsv_class = { \
     .class_name = #x "_qsv", \
-    .item_name  = av_default_item_name, \
     .option     = opt, \
     .version    = LIBAVUTIL_VERSION_INT, \
 }; \
diff --git a/libavcodec/qsvenc_av1.c b/libavcodec/qsvenc_av1.c
index c697845d7b..92433dc2f8 100644
--- a/libavcodec/qsvenc_av1.c
+++ b/libavcodec/qsvenc_av1.c
@@ -123,7 +123,6 @@  static const AVOption options[] = {
 
 static const AVClass class = {
     .class_name = "av1_qsv encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/qsvenc_h264.c b/libavcodec/qsvenc_h264.c
index 071a9a79e9..5627ca2c25 100644
--- a/libavcodec/qsvenc_h264.c
+++ b/libavcodec/qsvenc_h264.c
@@ -172,7 +172,6 @@  static const AVOption options[] = {
 
 static const AVClass class = {
     .class_name = "h264_qsv encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
index c5b7ac7cc4..b3717022b9 100644
--- a/libavcodec/qsvenc_hevc.c
+++ b/libavcodec/qsvenc_hevc.c
@@ -368,7 +368,6 @@  static const AVOption options[] = {
 
 static const AVClass class = {
     .class_name = "hevc_qsv encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/qsvenc_jpeg.c b/libavcodec/qsvenc_jpeg.c
index 2add12adc9..dc00942d4f 100644
--- a/libavcodec/qsvenc_jpeg.c
+++ b/libavcodec/qsvenc_jpeg.c
@@ -68,7 +68,6 @@  static const AVOption options[] = {
 
 static const AVClass class = {
     .class_name = "mjpeg_qsv encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/qsvenc_mpeg2.c b/libavcodec/qsvenc_mpeg2.c
index 22f1ff7c0d..bbeac53ea4 100644
--- a/libavcodec/qsvenc_mpeg2.c
+++ b/libavcodec/qsvenc_mpeg2.c
@@ -76,7 +76,6 @@  static const AVOption options[] = {
 
 static const AVClass class = {
     .class_name = "mpeg2_qsv encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/qsvenc_vp9.c b/libavcodec/qsvenc_vp9.c
index d0340ef94b..b7a596b4ce 100644
--- a/libavcodec/qsvenc_vp9.c
+++ b/libavcodec/qsvenc_vp9.c
@@ -87,7 +87,6 @@  static const AVOption options[] = {
 
 static const AVClass class = {
     .class_name = "vp9_qsv encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/rasc.c b/libavcodec/rasc.c
index 21c1829fc7..af14eee6f3 100644
--- a/libavcodec/rasc.c
+++ b/libavcodec/rasc.c
@@ -793,7 +793,6 @@  static const AVOption options[] = {
 
 static const AVClass rasc_decoder_class = {
     .class_name = "rasc decoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/remove_extradata_bsf.c b/libavcodec/remove_extradata_bsf.c
index 66b7d00bd8..67a9a04060 100644
--- a/libavcodec/remove_extradata_bsf.c
+++ b/libavcodec/remove_extradata_bsf.c
@@ -240,7 +240,6 @@  static const AVOption options[] = {
 
 static const AVClass remove_extradata_class = {
     .class_name = "remove_extradata",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/roqvideoenc.c b/libavcodec/roqvideoenc.c
index 0933abf4f9..0d02d1c101 100644
--- a/libavcodec/roqvideoenc.c
+++ b/libavcodec/roqvideoenc.c
@@ -1110,7 +1110,6 @@  static const AVOption options[] = {
 
 static const AVClass roq_class = {
     .class_name = "RoQ",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/rpzaenc.c b/libavcodec/rpzaenc.c
index d84555d6c6..b13a3d8fe6 100644
--- a/libavcodec/rpzaenc.c
+++ b/libavcodec/rpzaenc.c
@@ -864,7 +864,6 @@  static const AVOption options[] = {
 
 static const AVClass rpza_class = {
     .class_name = "rpza",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/s302m.c b/libavcodec/s302m.c
index f1b41608f3..fc93c6ad05 100644
--- a/libavcodec/s302m.c
+++ b/libavcodec/s302m.c
@@ -221,7 +221,6 @@  static const AVOption s302m_options[] = {
 
 static const AVClass s302m_class = {
     .class_name = "SMPTE 302M Decoder",
-    .item_name  = av_default_item_name,
     .option     = s302m_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/sbcenc.c b/libavcodec/sbcenc.c
index 6e1dd88c72..614a6fffa8 100644
--- a/libavcodec/sbcenc.c
+++ b/libavcodec/sbcenc.c
@@ -339,7 +339,6 @@  static const AVOption options[] = {
 
 static const AVClass sbc_class = {
     .class_name = "sbc encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/setts_bsf.c b/libavcodec/setts_bsf.c
index 9c27b24a39..31f4d7afec 100644
--- a/libavcodec/setts_bsf.c
+++ b/libavcodec/setts_bsf.c
@@ -262,7 +262,6 @@  static const AVOption options[] = {
 
 static const AVClass setts_class = {
     .class_name = "setts_bsf",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c
index 5bbb72c03a..50c6555a02 100644
--- a/libavcodec/sgienc.c
+++ b/libavcodec/sgienc.c
@@ -265,7 +265,6 @@  static const AVOption options[] = {
 
 static const AVClass sgi_class = {
     .class_name = "sgi",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index c215215346..e4fd95390f 100644
--- a/libavcodec/snowenc.c
+++ b/libavcodec/snowenc.c
@@ -2120,7 +2120,6 @@  static const AVOption options[] = {
 
 static const AVClass snowenc_class = {
     .class_name = "snow encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/sunrastenc.c b/libavcodec/sunrastenc.c
index b2d57f7235..0c09cbd907 100644
--- a/libavcodec/sunrastenc.c
+++ b/libavcodec/sunrastenc.c
@@ -203,7 +203,6 @@  static const AVOption options[] = {
 
 static const AVClass sunrast_class = {
     .class_name = "sunrast",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c
index 894ae552bb..764d047799 100644
--- a/libavcodec/svq1enc.c
+++ b/libavcodec/svq1enc.c
@@ -745,7 +745,6 @@  static const AVOption options[] = {
 
 static const AVClass svq1enc_class = {
     .class_name = "svq1enc",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/targaenc.c b/libavcodec/targaenc.c
index d9c500b97d..cf5da1fc09 100644
--- a/libavcodec/targaenc.c
+++ b/libavcodec/targaenc.c
@@ -197,7 +197,6 @@  static const AVOption options[] = {
 
 static const AVClass targa_class = {
     .class_name = "targa",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/textdec.c b/libavcodec/textdec.c
index b9aebff002..852f806e45 100644
--- a/libavcodec/textdec.c
+++ b/libavcodec/textdec.c
@@ -74,7 +74,6 @@  static void text_flush(AVCodecContext *avctx)
 
 static const AVClass textsub_decoder_class = {
     .class_name = "text/vplayer/stl/pjs/subviewer1 decoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index adb49e4525..3092e319d3 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -2454,7 +2454,6 @@  static const AVOption tiff_options[] = {
 
 static const AVClass tiff_decoder_class = {
     .class_name = "TIFF decoder",
-    .item_name  = av_default_item_name,
     .option     = tiff_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index 06d7dcc99d..a83657a219 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -564,7 +564,6 @@  static const AVOption options[] = {
 
 static const AVClass tiffenc_class = {
     .class_name = "TIFF encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 7763ed7ffc..7ea9b607a9 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -420,7 +420,6 @@  static const AVOption options[] = {
 
 static const AVClass tta_decoder_class = {
     .class_name = "TTA Decoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c
index 1fcb6854f2..e9c28e5704 100644
--- a/libavcodec/utvideoenc.c
+++ b/libavcodec/utvideoenc.c
@@ -654,7 +654,6 @@  static const AVOption options[] = {
 
 static const AVClass utvideo_class = {
     .class_name = "utvideo",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c
index d80fb4e7c6..71712056db 100644
--- a/libavcodec/v210dec.c
+++ b/libavcodec/v210dec.c
@@ -227,7 +227,6 @@  static const AVOption v210dec_options[] = {
 
 static const AVClass v210dec_class = {
     .class_name = "V210 Decoder",
-    .item_name  = av_default_item_name,
     .option     = v210dec_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/v4l2_m2m_dec.c b/libavcodec/v4l2_m2m_dec.c
index aa2d759e1e..8771c821eb 100644
--- a/libavcodec/v4l2_m2m_dec.c
+++ b/libavcodec/v4l2_m2m_dec.c
@@ -233,7 +233,6 @@  static const AVOption options[] = {
 #define M2MDEC_CLASS(NAME) \
     static const AVClass v4l2_m2m_ ## NAME ## _dec_class = { \
         .class_name = #NAME "_v4l2m2m_decoder", \
-        .item_name  = av_default_item_name, \
         .option     = options, \
         .version    = LIBAVUTIL_VERSION_INT, \
     };
diff --git a/libavcodec/v4l2_m2m_enc.c b/libavcodec/v4l2_m2m_enc.c
index e08db5d5d3..2a90098eab 100644
--- a/libavcodec/v4l2_m2m_enc.c
+++ b/libavcodec/v4l2_m2m_enc.c
@@ -414,7 +414,6 @@  static const FFCodecDefault v4l2_m2m_defaults[] = {
 #define M2MENC_CLASS(NAME, OPTIONS_NAME) \
     static const AVClass v4l2_m2m_ ## NAME ## _enc_class = { \
         .class_name = #NAME "_v4l2m2m_encoder", \
-        .item_name  = av_default_item_name, \
         .option     = OPTIONS_NAME, \
         .version    = LIBAVUTIL_VERSION_INT, \
     };
diff --git a/libavcodec/vaapi_encode_av1.c b/libavcodec/vaapi_encode_av1.c
index 5a9ff0f798..a773a2cb0b 100644
--- a/libavcodec/vaapi_encode_av1.c
+++ b/libavcodec/vaapi_encode_av1.c
@@ -922,7 +922,6 @@  static const FFCodecDefault vaapi_encode_av1_defaults[] = {
 
 static const AVClass vaapi_encode_av1_class = {
     .class_name = "av1_vaapi",
-    .item_name  = av_default_item_name,
     .option     = vaapi_encode_av1_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c
index 57b5ea2bab..74fbdacf74 100644
--- a/libavcodec/vaapi_encode_h264.c
+++ b/libavcodec/vaapi_encode_h264.c
@@ -1368,7 +1368,6 @@  static const FFCodecDefault vaapi_encode_h264_defaults[] = {
 
 static const AVClass vaapi_encode_h264_class = {
     .class_name = "h264_vaapi",
-    .item_name  = av_default_item_name,
     .option     = vaapi_encode_h264_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c
index 239ef2359a..3ebb8afa9b 100644
--- a/libavcodec/vaapi_encode_h265.c
+++ b/libavcodec/vaapi_encode_h265.c
@@ -1485,7 +1485,6 @@  static const FFCodecDefault vaapi_encode_h265_defaults[] = {
 
 static const AVClass vaapi_encode_h265_class = {
     .class_name = "h265_vaapi",
-    .item_name  = av_default_item_name,
     .option     = vaapi_encode_h265_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/vaapi_encode_mjpeg.c b/libavcodec/vaapi_encode_mjpeg.c
index c17747e3a9..e67e940c47 100644
--- a/libavcodec/vaapi_encode_mjpeg.c
+++ b/libavcodec/vaapi_encode_mjpeg.c
@@ -559,7 +559,6 @@  static const FFCodecDefault vaapi_encode_mjpeg_defaults[] = {
 
 static const AVClass vaapi_encode_mjpeg_class = {
     .class_name = "mjpeg_vaapi",
-    .item_name  = av_default_item_name,
     .option     = vaapi_encode_mjpeg_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/vaapi_encode_mpeg2.c b/libavcodec/vaapi_encode_mpeg2.c
index d1904bf4f5..f9a3ecc8d1 100644
--- a/libavcodec/vaapi_encode_mpeg2.c
+++ b/libavcodec/vaapi_encode_mpeg2.c
@@ -682,7 +682,6 @@  static const FFCodecDefault vaapi_encode_mpeg2_defaults[] = {
 
 static const AVClass vaapi_encode_mpeg2_class = {
     .class_name = "mpeg2_vaapi",
-    .item_name  = av_default_item_name,
     .option     = vaapi_encode_mpeg2_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/vaapi_encode_vp8.c b/libavcodec/vaapi_encode_vp8.c
index 8a557b967e..ddcf200085 100644
--- a/libavcodec/vaapi_encode_vp8.c
+++ b/libavcodec/vaapi_encode_vp8.c
@@ -237,7 +237,6 @@  static const FFCodecDefault vaapi_encode_vp8_defaults[] = {
 
 static const AVClass vaapi_encode_vp8_class = {
     .class_name = "vp8_vaapi",
-    .item_name  = av_default_item_name,
     .option     = vaapi_encode_vp8_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/vaapi_encode_vp9.c b/libavcodec/vaapi_encode_vp9.c
index c2a8dec71b..d00e73e945 100644
--- a/libavcodec/vaapi_encode_vp9.c
+++ b/libavcodec/vaapi_encode_vp9.c
@@ -294,7 +294,6 @@  static const FFCodecDefault vaapi_encode_vp9_defaults[] = {
 
 static const AVClass vaapi_encode_vp9_class = {
     .class_name = "vp9_vaapi",
-    .item_name  = av_default_item_name,
     .option     = vaapi_encode_vp9_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/vbnenc.c b/libavcodec/vbnenc.c
index 7ce91863d7..258bb975d4 100644
--- a/libavcodec/vbnenc.c
+++ b/libavcodec/vbnenc.c
@@ -143,7 +143,6 @@  static const AVOption options[] = {
 
 static const AVClass vbnenc_class = {
     .class_name = "VBN encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
index d978c67a3b..87856a95fc 100644
--- a/libavcodec/vc2enc.c
+++ b/libavcodec/vc2enc.c
@@ -1207,7 +1207,6 @@  static const AVClass vc2enc_class = {
     .class_name = "SMPTE VC-2 encoder",
     .category = AV_CLASS_CATEGORY_ENCODER,
     .option = vc2enc_options,
-    .item_name = av_default_item_name,
     .version = LIBAVUTIL_VERSION_INT
 };
 
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index fbd33fd3f9..15e0e1fe29 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -2905,7 +2905,6 @@  static const AVOption h264_options[] = {
 
 static const AVClass h264_videotoolbox_class = {
     .class_name = "h264_videotoolbox",
-    .item_name  = av_default_item_name,
     .option     = h264_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -2941,7 +2940,6 @@  static const AVOption hevc_options[] = {
 
 static const AVClass hevc_videotoolbox_class = {
     .class_name = "hevc_videotoolbox",
-    .item_name  = av_default_item_name,
     .option     = hevc_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -2980,7 +2978,6 @@  static const AVOption prores_options[] = {
 
 static const AVClass prores_videotoolbox_class = {
     .class_name = "prores_videotoolbox",
-    .item_name  = av_default_item_name,
     .option     = prores_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/vorbis_parser.c b/libavcodec/vorbis_parser.c
index d2c9e647ce..5bd862b76d 100644
--- a/libavcodec/vorbis_parser.c
+++ b/libavcodec/vorbis_parser.c
@@ -36,7 +36,6 @@ 
 
 static const AVClass vorbis_parser_class = {
     .class_name = "Vorbis parser",
-    .item_name  = av_default_item_name,
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
diff --git a/libavcodec/vp9_metadata_bsf.c b/libavcodec/vp9_metadata_bsf.c
index 40d1b21c67..024b2ad94a 100644
--- a/libavcodec/vp9_metadata_bsf.c
+++ b/libavcodec/vp9_metadata_bsf.c
@@ -126,7 +126,6 @@  static const AVOption vp9_metadata_options[] = {
 
 static const AVClass vp9_metadata_class = {
     .class_name = "vp9_metadata_bsf",
-    .item_name  = av_default_item_name,
     .option     = vp9_metadata_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavcodec/wavpackenc.c b/libavcodec/wavpackenc.c
index 33a5dfcc89..e138c7f3a6 100644
--- a/libavcodec/wavpackenc.c
+++ b/libavcodec/wavpackenc.c
@@ -2962,7 +2962,6 @@  static const AVOption options[] = {
 
 static const AVClass wavpack_encoder_class = {
     .class_name = "WavPack encoder",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavdevice/alsa_dec.c b/libavdevice/alsa_dec.c
index b518bbdac6..6b4ddef1af 100644
--- a/libavdevice/alsa_dec.c
+++ b/libavdevice/alsa_dec.c
@@ -151,7 +151,6 @@  static const AVOption options[] = {
 
 static const AVClass alsa_demuxer_class = {
     .class_name     = "ALSA indev",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
     .category       = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
diff --git a/libavdevice/alsa_enc.c b/libavdevice/alsa_enc.c
index 4c7805065e..730005a8c6 100644
--- a/libavdevice/alsa_enc.c
+++ b/libavdevice/alsa_enc.c
@@ -161,7 +161,6 @@  static int audio_get_device_list(AVFormatContext *h, AVDeviceInfoList *device_li
 
 static const AVClass alsa_muxer_class = {
     .class_name     = "ALSA outdev",
-    .item_name      = av_default_item_name,
     .version        = LIBAVUTIL_VERSION_INT,
     .category       = AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT,
 };
diff --git a/libavdevice/android_camera.c b/libavdevice/android_camera.c
index c981985f10..24e4a3948e 100644
--- a/libavdevice/android_camera.c
+++ b/libavdevice/android_camera.c
@@ -854,7 +854,6 @@  static const AVOption options[] = {
 
 static const AVClass android_camera_class = {
     .class_name = "android_camera indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
diff --git a/libavdevice/audiotoolbox.m b/libavdevice/audiotoolbox.m
index 3bd707f236..9380f77114 100644
--- a/libavdevice/audiotoolbox.m
+++ b/libavdevice/audiotoolbox.m
@@ -293,7 +293,6 @@  static const AVOption options[] = {
 
 static const AVClass at_class = {
     .class_name = "AudioToolbox",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT,
diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index a0ef87edff..6a57163eb7 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -1286,7 +1286,6 @@  static const AVOption options[] = {
 
 static const AVClass avf_class = {
     .class_name = "AVFoundation indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c
index 196637852f..29747c48bd 100644
--- a/libavdevice/bktr.c
+++ b/libavdevice/bktr.c
@@ -343,7 +343,6 @@  static const AVOption options[] = {
 
 static const AVClass bktr_class = {
     .class_name = "BKTR grab indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
diff --git a/libavdevice/caca.c b/libavdevice/caca.c
index 6af1649137..c4040b77a0 100644
--- a/libavdevice/caca.c
+++ b/libavdevice/caca.c
@@ -215,7 +215,6 @@  static const AVOption options[] = {
 
 static const AVClass caca_class = {
     .class_name = "caca outdev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
diff --git a/libavdevice/decklink_dec_c.c b/libavdevice/decklink_dec_c.c
index 2159702c96..b7a250dd50 100644
--- a/libavdevice/decklink_dec_c.c
+++ b/libavdevice/decklink_dec_c.c
@@ -105,7 +105,6 @@  static const AVOption options[] = {
 
 static const AVClass decklink_demuxer_class = {
     .class_name = "Blackmagic DeckLink indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
diff --git a/libavdevice/decklink_enc_c.c b/libavdevice/decklink_enc_c.c
index 25ffe77784..6d747fc66f 100644
--- a/libavdevice/decklink_enc_c.c
+++ b/libavdevice/decklink_enc_c.c
@@ -67,7 +67,6 @@  static const AVOption options[] = {
 
 static const AVClass decklink_muxer_class = {
     .class_name = "Blackmagic DeckLink outdev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 5946a72cc2..544d7eb6da 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -1918,7 +1918,6 @@  static const AVOption options[] = {
 
 static const AVClass dshow_class = {
     .class_name = "dshow indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
diff --git a/libavdevice/fbdev_dec.c b/libavdevice/fbdev_dec.c
index 460a71d13f..c7a51bc406 100644
--- a/libavdevice/fbdev_dec.c
+++ b/libavdevice/fbdev_dec.c
@@ -226,7 +226,6 @@  static const AVOption options[] = {
 
 static const AVClass fbdev_class = {
     .class_name = "fbdev indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
diff --git a/libavdevice/fbdev_enc.c b/libavdevice/fbdev_enc.c
index 7f3e8e5935..d7a091f54b 100644
--- a/libavdevice/fbdev_enc.c
+++ b/libavdevice/fbdev_enc.c
@@ -201,7 +201,6 @@  static const AVOption options[] = {
 
 static const AVClass fbdev_class = {
     .class_name = "fbdev outdev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
diff --git a/libavdevice/gdigrab.c b/libavdevice/gdigrab.c
index b2858ecd89..00499e47d7 100644
--- a/libavdevice/gdigrab.c
+++ b/libavdevice/gdigrab.c
@@ -670,7 +670,6 @@  static const AVOption options[] = {
 
 static const AVClass gdigrab_class = {
     .class_name = "GDIgrab indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
diff --git a/libavdevice/iec61883.c b/libavdevice/iec61883.c
index 7223ba2e64..a3b6ab6f32 100644
--- a/libavdevice/iec61883.c
+++ b/libavdevice/iec61883.c
@@ -496,7 +496,6 @@  static const AVOption options[] = {
 
 static const AVClass iec61883_class = {
     .class_name = "iec61883 indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
diff --git a/libavdevice/jack.c b/libavdevice/jack.c
index db056d824f..94f0f15e06 100644
--- a/libavdevice/jack.c
+++ b/libavdevice/jack.c
@@ -335,7 +335,6 @@  static const AVOption options[] = {
 
 static const AVClass jack_indev_class = {
     .class_name     = "JACK indev",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
     .category       = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
diff --git a/libavdevice/kmsgrab.c b/libavdevice/kmsgrab.c
index ba9b306c65..ae0dbafbfc 100644
--- a/libavdevice/kmsgrab.c
+++ b/libavdevice/kmsgrab.c
@@ -702,7 +702,6 @@  static const AVOption options[] = {
 
 static const AVClass kmsgrab_class = {
     .class_name = "kmsgrab indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 2bfd0b81c7..20f15c9ceb 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -487,7 +487,6 @@  static const AVOption options[] = {
 
 static const AVClass lavfi_class = {
     .class_name = "lavfi indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_INPUT,
diff --git a/libavdevice/libcdio.c b/libavdevice/libcdio.c
index 28c339564f..5f82bdd80a 100644
--- a/libavdevice/libcdio.c
+++ b/libavdevice/libcdio.c
@@ -174,7 +174,6 @@  static const AVOption options[] = {
 
 static const AVClass libcdio_class = {
     .class_name = "libcdio indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
diff --git a/libavdevice/libdc1394.c b/libavdevice/libdc1394.c
index e98b88c1a2..9d5668a836 100644
--- a/libavdevice/libdc1394.c
+++ b/libavdevice/libdc1394.c
@@ -87,7 +87,6 @@  static const AVOption options[] = {
 
 static const AVClass libdc1394_class = {
     .class_name = "libdc1394 indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
diff --git a/libavdevice/openal-dec.c b/libavdevice/openal-dec.c
index 91a40ae020..2c0f333291 100644
--- a/libavdevice/openal-dec.c
+++ b/libavdevice/openal-dec.c
@@ -242,7 +242,6 @@  static const AVOption options[] = {
 
 static const AVClass class = {
     .class_name = "openal indev",
-    .item_name = av_default_item_name,
     .option = options,
     .version = LIBAVUTIL_VERSION_INT,
     .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c
index b2ac6eb16a..3d54198c93 100644
--- a/libavdevice/opengl_enc.c
+++ b/libavdevice/opengl_enc.c
@@ -1291,7 +1291,6 @@  static const AVOption options[] = {
 
 static const AVClass opengl_class = {
     .class_name = "opengl outdev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
diff --git a/libavdevice/oss_dec.c b/libavdevice/oss_dec.c
index 2cdc4324e8..5907e2c6c7 100644
--- a/libavdevice/oss_dec.c
+++ b/libavdevice/oss_dec.c
@@ -124,7 +124,6 @@  static const AVOption options[] = {
 
 static const AVClass oss_demuxer_class = {
     .class_name     = "OSS indev",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
     .category       = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
diff --git a/libavdevice/oss_enc.c b/libavdevice/oss_enc.c
index c125e6c0e9..8da069c0d5 100644
--- a/libavdevice/oss_enc.c
+++ b/libavdevice/oss_enc.c
@@ -90,7 +90,6 @@  static int audio_write_trailer(AVFormatContext *s1)
 
 static const AVClass oss_muxer_class = {
     .class_name     = "OSS outdev",
-    .item_name      = av_default_item_name,
     .version        = LIBAVUTIL_VERSION_INT,
     .category       = AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT,
 };
diff --git a/libavdevice/pulse_audio_dec.c b/libavdevice/pulse_audio_dec.c
index 2545462939..b9d4662250 100644
--- a/libavdevice/pulse_audio_dec.c
+++ b/libavdevice/pulse_audio_dec.c
@@ -387,7 +387,6 @@  static const AVOption options[] = {
 
 static const AVClass pulse_demuxer_class = {
     .class_name     = "Pulse indev",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
     .category       = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c
index f051df3e72..9aff25b6dc 100644
--- a/libavdevice/pulse_audio_enc.c
+++ b/libavdevice/pulse_audio_enc.c
@@ -783,7 +783,6 @@  static const AVOption options[] = {
 
 static const AVClass pulse_muxer_class = {
     .class_name     = "PulseAudio outdev",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
     .category       = AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT,
diff --git a/libavdevice/sdl2.c b/libavdevice/sdl2.c
index 342a253dc0..0091a23e19 100644
--- a/libavdevice/sdl2.c
+++ b/libavdevice/sdl2.c
@@ -350,7 +350,6 @@  static const AVOption options[] = {
 
 static const AVClass sdl2_class = {
     .class_name = "sdl2 outdev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
diff --git a/libavdevice/sndio_dec.c b/libavdevice/sndio_dec.c
index 6059830367..fdc30a9619 100644
--- a/libavdevice/sndio_dec.c
+++ b/libavdevice/sndio_dec.c
@@ -103,7 +103,6 @@  static const AVOption options[] = {
 
 static const AVClass sndio_demuxer_class = {
     .class_name     = "sndio indev",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
     .category       = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
diff --git a/libavdevice/sndio_enc.c b/libavdevice/sndio_enc.c
index 578e287a41..fa45ea9b4e 100644
--- a/libavdevice/sndio_enc.c
+++ b/libavdevice/sndio_enc.c
@@ -82,7 +82,6 @@  static int audio_write_trailer(AVFormatContext *s1)
 
 static const AVClass sndio_muxer_class = {
     .class_name     = "sndio outdev",
-    .item_name      = av_default_item_name,
     .version        = LIBAVUTIL_VERSION_INT,
     .category       = AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT,
 };
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 5e85d1a2b3..b7c223a56f 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -1128,7 +1128,6 @@  static const AVOption options[] = {
 
 static const AVClass v4l2_class = {
     .class_name = "V4L2 indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
diff --git a/libavdevice/v4l2enc.c b/libavdevice/v4l2enc.c
index 8e8f911996..68e303fabf 100644
--- a/libavdevice/v4l2enc.c
+++ b/libavdevice/v4l2enc.c
@@ -107,7 +107,6 @@  static int write_trailer(AVFormatContext *s1)
 
 static const AVClass v4l2_class = {
     .class_name = "V4L2 outdev",
-    .item_name  = av_default_item_name,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
 };
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index 86a40b4af4..7bb3b59830 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -476,7 +476,6 @@  static const AVOption options[] = {
 
 static const AVClass vfw_class = {
     .class_name = "VFW indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT
diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c
index 64a68ba497..03f5b4e4d8 100644
--- a/libavdevice/xcbgrab.c
+++ b/libavdevice/xcbgrab.c
@@ -102,7 +102,6 @@  static const AVOption options[] = {
 
 static const AVClass xcbgrab_class = {
     .class_name = "xcbgrab indev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
diff --git a/libavdevice/xv.c b/libavdevice/xv.c
index cba933ef17..5ad77e2adc 100644
--- a/libavdevice/xv.c
+++ b/libavdevice/xv.c
@@ -371,7 +371,6 @@  static const AVOption options[] = {
 
 static const AVClass xv_class = {
     .class_name = "xvideo outdev",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c
index f4bcc45616..d741a174a0 100644
--- a/libavfilter/af_aresample.c
+++ b/libavfilter/af_aresample.c
@@ -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,
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 68daa93e61..9e9464c034 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -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,
diff --git a/libavfilter/framesync.h b/libavfilter/framesync.h
index 233f50a0eb..9e12758138 100644
--- a/libavfilter/framesync.h
+++ b/libavfilter/framesync.h
@@ -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,                  \
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index 2dbc5def0a..4e36df6189 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -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, \
diff --git a/libavfilter/stack_internal.c b/libavfilter/stack_internal.c
index 1ee20d66cf..cf1edf222e 100644
--- a/libavfilter/stack_internal.c
+++ b/libavfilter/stack_internal.c
@@ -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,                            \
     };                                                                  \
diff --git a/libavfilter/vf_bilateral_cuda.c b/libavfilter/vf_bilateral_cuda.c
index ba008b517a..57a7364649 100644
--- a/libavfilter/vf_bilateral_cuda.c
+++ b/libavfilter/vf_bilateral_cuda.c
@@ -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,
 };
diff --git a/libavfilter/vf_bwdif_cuda.c b/libavfilter/vf_bwdif_cuda.c
index 418f15f989..9ea7a67018 100644
--- a/libavfilter/vf_bwdif_cuda.c
+++ b/libavfilter/vf_bwdif_cuda.c
@@ -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,
diff --git a/libavfilter/vf_bwdif_vulkan.c b/libavfilter/vf_bwdif_vulkan.c
index c51df9aa26..15af354e99 100644
--- a/libavfilter/vf_bwdif_vulkan.c
+++ b/libavfilter/vf_bwdif_vulkan.c
@@ -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,
diff --git a/libavfilter/vf_chromakey_cuda.c b/libavfilter/vf_chromakey_cuda.c
index ac644caea7..dbe1ce0f90 100644
--- a/libavfilter/vf_chromakey_cuda.c
+++ b/libavfilter/vf_chromakey_cuda.c
@@ -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,
 };
diff --git a/libavfilter/vf_colorspace_cuda.c b/libavfilter/vf_colorspace_cuda.c
index 09fd4dd778..2f23f91d7f 100644
--- a/libavfilter/vf_colorspace_cuda.c
+++ b/libavfilter/vf_colorspace_cuda.c
@@ -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,
 };
diff --git a/libavfilter/vf_deinterlace_vaapi.c b/libavfilter/vf_deinterlace_vaapi.c
index f085a7c10a..83662729be 100644
--- a/libavfilter/vf_deinterlace_vaapi.c
+++ b/libavfilter/vf_deinterlace_vaapi.c
@@ -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,
 };
diff --git a/libavfilter/vf_hwdownload.c b/libavfilter/vf_hwdownload.c
index 5ef23cb5d4..d43f03e26b 100644
--- a/libavfilter/vf_hwdownload.c
+++ b/libavfilter/vf_hwdownload.c
@@ -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,
 };
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index b45035907b..b51ae9a26a 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -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,
diff --git a/libavfilter/vf_scale_cuda.c b/libavfilter/vf_scale_cuda.c
index 4cd21bbf25..2afb165de3 100644
--- a/libavfilter/vf_scale_cuda.c
+++ b/libavfilter/vf_scale_cuda.c
@@ -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,
 };
diff --git a/libavfilter/vf_scale_npp.c b/libavfilter/vf_scale_npp.c
index 3cfead82bf..f9b6addd0c 100644
--- a/libavfilter/vf_scale_npp.c
+++ b/libavfilter/vf_scale_npp.c
@@ -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,
diff --git a/libavfilter/vf_sharpen_npp.c b/libavfilter/vf_sharpen_npp.c
index 0a2c5c458b..da4d2b1b30 100644
--- a/libavfilter/vf_sharpen_npp.c
+++ b/libavfilter/vf_sharpen_npp.c
@@ -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,
 };
diff --git a/libavfilter/vf_spp.c b/libavfilter/vf_spp.c
index bb74b20e0e..eca429e03a 100644
--- a/libavfilter/vf_spp.c
+++ b/libavfilter/vf_spp.c
@@ -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,
diff --git a/libavfilter/vf_transpose_npp.c b/libavfilter/vf_transpose_npp.c
index a7a779cc25..6e22b1fc92 100644
--- a/libavfilter/vf_transpose_npp.c
+++ b/libavfilter/vf_transpose_npp.c
@@ -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,
 };
diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c
index 5356103e00..fdf9910186 100644
--- a/libavfilter/vf_vpp_qsv.c
+++ b/libavfilter/vf_vpp_qsv.c
@@ -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, \
 }; \
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index a5a856bf5f..863a1d6ffb 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -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,
diff --git a/libavfilter/vf_yadif_cuda.c b/libavfilter/vf_yadif_cuda.c
index d777757e65..44a284788d 100644
--- a/libavfilter/vf_yadif_cuda.c
+++ b/libavfilter/vf_yadif_cuda.c
@@ -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,
diff --git a/libavfilter/vidstabutils.c b/libavfilter/vidstabutils.c
index 56fbdbdb87..47590dd733 100644
--- a/libavfilter/vidstabutils.c
+++ b/libavfilter/vidstabutils.c
@@ -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,
diff --git a/libavformat/aadec.c b/libavformat/aadec.c
index e7b048b1f9..840afe0f1f 100644
--- a/libavformat/aadec.c
+++ b/libavformat/aadec.c
@@ -366,7 +366,6 @@  static const AVOption aa_options[] = {
 
 static const AVClass aa_class = {
     .class_name = "aa",
-    .item_name  = av_default_item_name,
     .option     = aa_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/ac4enc.c b/libavformat/ac4enc.c
index aefbfc2684..df768892dc 100644
--- a/libavformat/ac4enc.c
+++ b/libavformat/ac4enc.c
@@ -82,7 +82,6 @@  static const AVOption ac4_options[] = {
 
 static const AVClass ac4_muxer_class = {
     .class_name     = "AC4 muxer",
-    .item_name      = av_default_item_name,
     .option         = ac4_options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/adtsenc.c b/libavformat/adtsenc.c
index c5765cc92e..5ebbc641d2 100644
--- a/libavformat/adtsenc.c
+++ b/libavformat/adtsenc.c
@@ -228,7 +228,6 @@  static const AVOption options[] = {
 
 static const AVClass adts_muxer_class = {
     .class_name     = "ADTS muxer",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/aiffenc.c b/libavformat/aiffenc.c
index 11a5b18d57..12c871dd93 100644
--- a/libavformat/aiffenc.c
+++ b/libavformat/aiffenc.c
@@ -280,7 +280,6 @@  static const AVOption options[] = {
 
 static const AVClass aiff_muxer_class = {
     .class_name     = "AIFF muxer",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/alp.c b/libavformat/alp.c
index 8c6066a59c..bbba769f7b 100644
--- a/libavformat/alp.c
+++ b/libavformat/alp.c
@@ -286,7 +286,6 @@  static const AVOption alp_options[] = {
 
 static const AVClass alp_muxer_class = {
     .class_name = "alp",
-    .item_name  = av_default_item_name,
     .option     = alp_options,
     .version    = LIBAVUTIL_VERSION_INT
 };
diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c
index 8f5f37a2b1..835a94e9e1 100644
--- a/libavformat/apngdec.c
+++ b/libavformat/apngdec.c
@@ -415,7 +415,6 @@  static const AVOption options[] = {
 
 static const AVClass demuxer_class = {
     .class_name = "APNG demuxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEMUXER,
diff --git a/libavformat/apngenc.c b/libavformat/apngenc.c
index a0af916f14..be08c033ed 100644
--- a/libavformat/apngenc.c
+++ b/libavformat/apngenc.c
@@ -302,7 +302,6 @@  static const AVOption options[] = {
 
 static const AVClass apng_muxer_class = {
     .class_name = "APNG muxer",
-    .item_name  = av_default_item_name,
     .version    = LIBAVUTIL_VERSION_INT,
     .option     = options,
 };
diff --git a/libavformat/aptxdec.c b/libavformat/aptxdec.c
index 0637a8afde..e1043564af 100644
--- a/libavformat/aptxdec.c
+++ b/libavformat/aptxdec.c
@@ -95,7 +95,6 @@  static const AVOption aptx_options[] = {
 
 static const AVClass aptx_demuxer_class = {
     .class_name = "aptx (hd) demuxer",
-    .item_name  = av_default_item_name,
     .option     = aptx_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/aqtitledec.c b/libavformat/aqtitledec.c
index 6c14b23862..bb977150b8 100644
--- a/libavformat/aqtitledec.c
+++ b/libavformat/aqtitledec.c
@@ -130,7 +130,6 @@  static const AVOption aqt_options[] = {
 
 static const AVClass aqt_class = {
     .class_name = "aqtdec",
-    .item_name  = av_default_item_name,
     .option     = aqt_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/argo_asf.c b/libavformat/argo_asf.c
index 5f38b68b6a..61951c21d9 100644
--- a/libavformat/argo_asf.c
+++ b/libavformat/argo_asf.c
@@ -466,7 +466,6 @@  static const AVOption argo_asf_options[] = {
 
 static const AVClass argo_asf_muxer_class = {
     .class_name = "argo_asf_muxer",
-    .item_name  = av_default_item_name,
     .option     = argo_asf_options,
     .version    = LIBAVUTIL_VERSION_INT
 };
diff --git a/libavformat/argo_cvg.c b/libavformat/argo_cvg.c
index 2c74200b7d..153f746b3d 100644
--- a/libavformat/argo_cvg.c
+++ b/libavformat/argo_cvg.c
@@ -396,7 +396,6 @@  static const AVOption argo_cvg_options[] = {
 
 static const AVClass argo_cvg_muxer_class = {
     .class_name = "argo_cvg_muxer",
-    .item_name  = av_default_item_name,
     .option     = argo_cvg_options,
     .version    = LIBAVUTIL_VERSION_INT
 };
diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c
index a579c3e894..1c97d8b5b9 100644
--- a/libavformat/asfdec_f.c
+++ b/libavformat/asfdec_f.c
@@ -125,7 +125,6 @@  static const AVOption options[] = {
 
 static const AVClass asf_class = {
     .class_name = "asf demuxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index 2f2d9b1bab..4cb59317a1 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -1121,7 +1121,6 @@  static const AVOption asf_options[] = {
 
 static const AVClass asf_muxer_class = {
     .class_name     = "ASF (stream) muxer",
-    .item_name      = av_default_item_name,
     .option         = asf_options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/assenc.c b/libavformat/assenc.c
index 62ea0745a4..60112b88bc 100644
--- a/libavformat/assenc.c
+++ b/libavformat/assenc.c
@@ -223,7 +223,6 @@  static const AVOption options[] = {
 
 static const AVClass ass_class = {
     .class_name = "ass muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/astenc.c b/libavformat/astenc.c
index 9dd388040f..259948b276 100644
--- a/libavformat/astenc.c
+++ b/libavformat/astenc.c
@@ -190,7 +190,6 @@  static const AVOption options[] = {
 
 static const AVClass ast_muxer_class = {
     .class_name = "AST muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/async.c b/libavformat/async.c
index e096b0bc6f..283f50cf4b 100644
--- a/libavformat/async.c
+++ b/libavformat/async.c
@@ -484,7 +484,6 @@  static const AVOption options[] = {
 
 static const AVClass async_context_class = {
     .class_name = "Async",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -586,7 +585,6 @@  static const AVOption async_test_options[] = {
 
 static const AVClass async_test_context_class = {
     .class_name = "Async-Test",
-    .item_name  = av_default_item_name,
     .option     = async_test_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/av1dec.c b/libavformat/av1dec.c
index 8a06445958..8b74fa1af8 100644
--- a/libavformat/av1dec.c
+++ b/libavformat/av1dec.c
@@ -116,7 +116,6 @@  static const AVOption av1_options[] = {
 
 static const AVClass av1_demuxer_class = {
     .class_name = "AV1 Annex B/low overhead OBU demuxer",
-    .item_name  = av_default_item_name,
     .option     = av1_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 00bd7a98a9..744ae64ff3 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -97,7 +97,6 @@  static const AVOption options[] = {
 
 static const AVClass demuxer_class = {
     .class_name = "avi",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEMUXER,
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index a61e5c3109..b44ddfe0aa 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -999,7 +999,6 @@  static const AVOption options[] = {
 
 static const AVClass avi_muxer_class = {
     .class_name = "AVI muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 5a329ce465..0265035087 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -66,7 +66,6 @@  static const AVOption ff_avio_options[] = {
 
 const AVClass ff_avio_class = {
     .class_name = "AVIOContext",
-    .item_name  = av_default_item_name,
     .version    = LIBAVUTIL_VERSION_INT,
     .option     = ff_avio_options,
     .child_next = ff_avio_child_next,
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index 027e8c63f6..ba8ffde426 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -1192,7 +1192,6 @@  static const AVOption avisynth_options[] = {
 
 static const AVClass avisynth_demuxer_class = {
     .class_name = "AviSynth demuxer",
-    .item_name  = av_default_item_name,
     .option     = avisynth_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/bintext.c b/libavformat/bintext.c
index b6f14a03e5..860e2bf784 100644
--- a/libavformat/bintext.c
+++ b/libavformat/bintext.c
@@ -382,7 +382,6 @@  static const AVOption options[] = {
 #define CLASS(name) \
 (const AVClass[1]){{ \
     .class_name     = name, \
-    .item_name      = av_default_item_name, \
     .option         = options, \
     .version        = LIBAVUTIL_VERSION_INT, \
 }}
diff --git a/libavformat/bluray.c b/libavformat/bluray.c
index 1845551c34..34ea05d603 100644
--- a/libavformat/bluray.c
+++ b/libavformat/bluray.c
@@ -51,7 +51,6 @@  static const AVOption options[] = {
 
 static const AVClass bluray_context_class = {
     .class_name     = "bluray",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/cache.c b/libavformat/cache.c
index 115c2c2490..aba6230057 100644
--- a/libavformat/cache.c
+++ b/libavformat/cache.c
@@ -327,7 +327,6 @@  static const AVOption options[] = {
 
 static const AVClass cache_context_class = {
     .class_name = "cache",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/cdxl.c b/libavformat/cdxl.c
index 065148360e..a7f5288faa 100644
--- a/libavformat/cdxl.c
+++ b/libavformat/cdxl.c
@@ -252,7 +252,6 @@  static const AVOption cdxl_options[] = {
 
 static const AVClass cdxl_demuxer_class = {
     .class_name = "CDXL demuxer",
-    .item_name  = av_default_item_name,
     .option     = cdxl_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/chromaprint.c b/libavformat/chromaprint.c
index 9e5fd780c1..4b09b6f14f 100644
--- a/libavformat/chromaprint.c
+++ b/libavformat/chromaprint.c
@@ -172,7 +172,6 @@  static const AVOption options[] = {
 
 static const AVClass chromaprint_class = {
     .class_name = "chromaprint muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/codec2.c b/libavformat/codec2.c
index f0f7b89253..1d6ef2a14a 100644
--- a/libavformat/codec2.c
+++ b/libavformat/codec2.c
@@ -279,7 +279,6 @@  static const AVOption codec2raw_options[] = {
 
 static const AVClass codec2_demux_class = {
     .class_name = "codec2 demuxer",
-    .item_name  = av_default_item_name,
     .option     = codec2_options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEMUXER,
@@ -287,7 +286,6 @@  static const AVClass codec2_demux_class = {
 
 static const AVClass codec2raw_demux_class = {
     .class_name = "codec2raw demuxer",
-    .item_name  = av_default_item_name,
     .option     = codec2raw_options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEMUXER,
diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
index ffa8ade25b..5a7a063ef7 100644
--- a/libavformat/concatdec.c
+++ b/libavformat/concatdec.c
@@ -930,7 +930,6 @@  static const AVOption options[] = {
 
 static const AVClass concat_class = {
     .class_name = "concat demuxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/crypto.c b/libavformat/crypto.c
index 75b00020bc..d0eb7fbe5d 100644
--- a/libavformat/crypto.c
+++ b/libavformat/crypto.c
@@ -73,7 +73,6 @@  static const AVOption options[] = {
 
 static const AVClass crypto_class = {
     .class_name     = "crypto",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 1215407f3c..a60abe05ce 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -2350,7 +2350,6 @@  static const AVOption dash_options[] = {
 
 static const AVClass dash_class = {
     .class_name = "dash",
-    .item_name  = av_default_item_name,
     .option     = dash_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 2f5394c308..5ca1661119 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -2411,7 +2411,6 @@  static const AVOption options[] = {
 
 static const AVClass dash_class = {
     .class_name = "dash muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/dfpwmdec.c b/libavformat/dfpwmdec.c
index b92b00f13a..a92649ddfe 100644
--- a/libavformat/dfpwmdec.c
+++ b/libavformat/dfpwmdec.c
@@ -81,7 +81,6 @@  static const AVOption dfpwm_options[] = {
 };
 static const AVClass dfpwm_demuxer_class = {
     .class_name = "dfpwm demuxer",
-    .item_name  = av_default_item_name,
     .option     = dfpwm_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index e7f574aede..1d0c119c73 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -778,7 +778,6 @@  static const AVOption options[] = {
 
 static const AVClass ea_class = {
     .class_name = "ea demuxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/evcdec.c b/libavformat/evcdec.c
index 5ace604db6..2dad6c2f7a 100644
--- a/libavformat/evcdec.c
+++ b/libavformat/evcdec.c
@@ -51,7 +51,6 @@  static const AVOption evc_options[] = {
 
 static const AVClass evc_demuxer_class = {
     .class_name = "EVC Annex B demuxer",
-    .item_name  = av_default_item_name,
     .option     = evc_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/fifo.c b/libavformat/fifo.c
index 8fb4975a5c..9d9796fd32 100644
--- a/libavformat/fifo.c
+++ b/libavformat/fifo.c
@@ -706,7 +706,6 @@  static const AVOption options[] = {
 
 static const AVClass fifo_muxer_class = {
     .class_name = "Fifo muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/fifo_test.c b/libavformat/fifo_test.c
index 3861c4aee4..d4f6800c5d 100644
--- a/libavformat/fifo_test.c
+++ b/libavformat/fifo_test.c
@@ -133,7 +133,6 @@  static const AVOption options[] = {
 
 static const AVClass failing_muxer_class = {
     .class_name = "Fifo test muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/file.c b/libavformat/file.c
index 64df7ff6fb..712382c42d 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -117,21 +117,18 @@  static const AVOption pipe_options[] = {
 
 static const AVClass file_class = {
     .class_name = "file",
-    .item_name  = av_default_item_name,
     .option     = file_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
 static const AVClass pipe_class = {
     .class_name = "pipe",
-    .item_name  = av_default_item_name,
     .option     = pipe_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
 static const AVClass fd_class = {
     .class_name = "fd",
-    .item_name  = av_default_item_name,
     .option     = pipe_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/fitsdec.c b/libavformat/fitsdec.c
index e0f502e4e3..e6a7dadbe5 100644
--- a/libavformat/fitsdec.c
+++ b/libavformat/fitsdec.c
@@ -214,7 +214,6 @@  static const AVOption fits_options[] = {
 
 static const AVClass fits_demuxer_class = {
     .class_name = "FITS demuxer",
-    .item_name  = av_default_item_name,
     .option     = fits_options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEMUXER,
diff --git a/libavformat/flacenc.c b/libavformat/flacenc.c
index a8beec7750..e4fd87930e 100644
--- a/libavformat/flacenc.c
+++ b/libavformat/flacenc.c
@@ -409,7 +409,6 @@  static const AVOption flacenc_options[] = {
 
 static const AVClass flac_muxer_class = {
     .class_name = "flac muxer",
-    .item_name  = av_default_item_name,
     .option     = flacenc_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index e25b5bd163..639a9f84d9 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -1407,7 +1407,6 @@  static const AVOption options[] = {
 
 static const AVClass flv_kux_class = {
     .class_name = "(live) flv/kux demuxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 874560fac1..289489ebb1 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -1105,7 +1105,6 @@  static const AVOption options[] = {
 
 static const AVClass flv_muxer_class = {
     .class_name = "flv muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/ftp.c b/libavformat/ftp.c
index f9b069a59e..23dd5da3f7 100644
--- a/libavformat/ftp.c
+++ b/libavformat/ftp.c
@@ -92,7 +92,6 @@  static const AVOption options[] = {
 
 static const AVClass ftp_context_class = {
     .class_name     = "ftp",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/g726.c b/libavformat/g726.c
index 97580a74f8..016ab70dda 100644
--- a/libavformat/g726.c
+++ b/libavformat/g726.c
@@ -69,7 +69,6 @@  static const AVOption options[] = {
 
 static const AVClass g726_demuxer_class = {
     .class_name     = "G.726 demuxer",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/g729dec.c b/libavformat/g729dec.c
index 9c92ea4fcf..e6ecb5297a 100644
--- a/libavformat/g729dec.c
+++ b/libavformat/g729dec.c
@@ -88,7 +88,6 @@  static const AVOption g729_options[] = {
 
 static const AVClass g729_demuxer_class = {
     .class_name = "g729 demuxer",
-    .item_name  = av_default_item_name,
     .option     = g729_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/gif.c b/libavformat/gif.c
index 568867cc5d..23ffcef0b5 100644
--- a/libavformat/gif.c
+++ b/libavformat/gif.c
@@ -200,7 +200,6 @@  static const AVOption options[] = {
 
 static const AVClass gif_muxer_class = {
     .class_name = "GIF muxer",
-    .item_name  = av_default_item_name,
     .version    = LIBAVUTIL_VERSION_INT,
     .option     = options,
 };
diff --git a/libavformat/gifdec.c b/libavformat/gifdec.c
index 32286adafe..d22f70e4c9 100644
--- a/libavformat/gifdec.c
+++ b/libavformat/gifdec.c
@@ -272,7 +272,6 @@  static const AVOption options[] = {
 
 static const AVClass demuxer_class = {
     .class_name = "GIF demuxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEMUXER,
diff --git a/libavformat/gsmdec.c b/libavformat/gsmdec.c
index 7150daa510..2f1cc159f3 100644
--- a/libavformat/gsmdec.c
+++ b/libavformat/gsmdec.c
@@ -97,7 +97,6 @@  static const AVOption options[] = {
 
 static const AVClass gsm_class = {
     .class_name = "gsm demuxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/hashenc.c b/libavformat/hashenc.c
index 17ee2f7e9f..a7ed15dfbd 100644
--- a/libavformat/hashenc.c
+++ b/libavformat/hashenc.c
@@ -52,7 +52,6 @@  static const AVOption hash_streamhash_options[] = {
 
 static const AVClass hash_streamhashenc_class = {
     .class_name = "(stream) hash muxer",
-    .item_name  = av_default_item_name,
     .option     = hash_streamhash_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -192,7 +191,6 @@  const FFOutputFormat ff_hash_muxer = {
 #if CONFIG_MD5_MUXER
 static const AVClass md5enc_class = {
     .class_name = "MD5 muxer",
-    .item_name  = av_default_item_name,
     .option     = md5_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -320,7 +318,6 @@  static int framehash_write_packet(struct AVFormatContext *s, AVPacket *pkt)
 #if CONFIG_FRAMEHASH_MUXER
 static const AVClass framehash_class = {
     .class_name = "frame hash muxer",
-    .item_name  = av_default_item_name,
     .option     = framehash_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -344,7 +341,6 @@  const FFOutputFormat ff_framehash_muxer = {
 #if CONFIG_FRAMEMD5_MUXER
 static const AVClass framemd5_class = {
     .class_name = "frame MD5 muxer",
-    .item_name  = av_default_item_name,
     .option     = framemd5_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/hca.c b/libavformat/hca.c
index e796512a62..3d36565fc1 100644
--- a/libavformat/hca.c
+++ b/libavformat/hca.c
@@ -143,7 +143,6 @@  static const AVOption hca_options[] = {
 
 static const AVClass hca_class = {
     .class_name = "hca",
-    .item_name  = av_default_item_name,
     .option     = hca_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c
index 7062441b70..8386d28c79 100644
--- a/libavformat/hdsenc.c
+++ b/libavformat/hdsenc.c
@@ -563,7 +563,6 @@  static const AVOption options[] = {
 
 static const AVClass hds_class = {
     .class_name = "HDS muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 61e2d67588..a69430a457 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -2589,7 +2589,6 @@  static const AVOption hls_options[] = {
 
 static const AVClass hls_class = {
     .class_name = "hls demuxer",
-    .item_name  = av_default_item_name,
     .option     = hls_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 7049956dd7..52824fce69 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -3183,7 +3183,6 @@  static const AVOption options[] = {
 
 static const AVClass hls_class = {
     .class_name = "hls muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/http.c b/libavformat/http.c
index c0fe7c36d9..8113043ffb 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1986,7 +1986,6 @@  static int http_get_short_seek(URLContext *h)
 #define HTTP_CLASS(flavor)                          \
 static const AVClass flavor ## _context_class = {   \
     .class_name = # flavor,                         \
-    .item_name  = av_default_item_name,             \
     .option     = options,                          \
     .version    = LIBAVUTIL_VERSION_INT,            \
 }
diff --git a/libavformat/icecast.c b/libavformat/icecast.c
index b06c53cabd..f883f38777 100644
--- a/libavformat/icecast.c
+++ b/libavformat/icecast.c
@@ -207,7 +207,6 @@  static int icecast_write(URLContext *h, const uint8_t *buf, int size)
 
 static const AVClass icecast_context_class = {
     .class_name     = "icecast",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c
index 818b5e590b..4525ed5909 100644
--- a/libavformat/imfdec.c
+++ b/libavformat/imfdec.c
@@ -1014,7 +1014,6 @@  static const AVOption imf_options[] = {
 
 static const AVClass imf_class = {
     .class_name = "imf",
-    .item_name  = av_default_item_name,
     .option     = imf_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/img2_alias_pix.c b/libavformat/img2_alias_pix.c
index d0aac83924..cc5a4f3b1f 100644
--- a/libavformat/img2_alias_pix.c
+++ b/libavformat/img2_alias_pix.c
@@ -56,7 +56,6 @@  static int alias_pix_read_probe(const AVProbeData *p)
 
 static const AVClass image2_alias_pix_class = {
     .class_name = "alias_pix demuxer",
-    .item_name  = av_default_item_name,
     .option     = ff_img_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/img2_brender_pix.c b/libavformat/img2_brender_pix.c
index 9d9a7c0819..50e65dda55 100644
--- a/libavformat/img2_brender_pix.c
+++ b/libavformat/img2_brender_pix.c
@@ -40,7 +40,6 @@  static int brender_read_probe(const AVProbeData *p)
 
 static const AVClass image2_brender_pix_class = {
     .class_name = "brender_pix demuxer",
-    .item_name  = av_default_item_name,
     .option     = ff_img_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 2761cb37a4..a719d5ff2a 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -634,7 +634,6 @@  const AVOption ff_img_options[] = {
 
 static const AVClass img2_class = {
     .class_name = "image2 demuxer",
-    .item_name  = av_default_item_name,
     .option     = ff_img_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -658,7 +657,6 @@  static const AVOption img2pipe_options[] = {
 };
 static const AVClass imagepipe_class = {
     .class_name = "imagepipe demuxer",
-    .item_name  = av_default_item_name,
     .option     = img2pipe_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c
index 526a11e5ee..acfb404c6d 100644
--- a/libavformat/img2enc.c
+++ b/libavformat/img2enc.c
@@ -266,7 +266,6 @@  static const AVOption muxoptions[] = {
 #if CONFIG_IMAGE2_MUXER
 static const AVClass img2mux_class = {
     .class_name = "image2 muxer",
-    .item_name  = av_default_item_name,
     .option     = muxoptions,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/ipfsgateway.c b/libavformat/ipfsgateway.c
index 9c0d461099..879a33d818 100644
--- a/libavformat/ipfsgateway.c
+++ b/libavformat/ipfsgateway.c
@@ -331,7 +331,6 @@  static const AVOption options[] = {
 
 static const AVClass ipfs_gateway_context_class = {
     .class_name     = "IPFS Gateway",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/latmenc.c b/libavformat/latmenc.c
index 8eec632c54..77da397c29 100644
--- a/libavformat/latmenc.c
+++ b/libavformat/latmenc.c
@@ -52,7 +52,6 @@  static const AVOption options[] = {
 
 static const AVClass latm_muxer_class = {
     .class_name = "LATM/LOAS muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/libamqp.c b/libavformat/libamqp.c
index c3b9c484ea..24ad3e87f0 100644
--- a/libavformat/libamqp.c
+++ b/libavformat/libamqp.c
@@ -306,7 +306,6 @@  static int amqp_proto_close(URLContext *h)
 
 static const AVClass amqp_context_class = {
     .class_name = "amqp",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/libgme.c b/libavformat/libgme.c
index 695155c9ac..4d04537339 100644
--- a/libavformat/libgme.c
+++ b/libavformat/libgme.c
@@ -188,7 +188,6 @@  static int probe_gme(const AVProbeData *p)
 
 static const AVClass class_gme = {
     .class_name = "Game Music Emu demuxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/libmodplug.c b/libavformat/libmodplug.c
index 0cae13bd2e..f0c5dd9f18 100644
--- a/libavformat/libmodplug.c
+++ b/libavformat/libmodplug.c
@@ -375,7 +375,6 @@  static int modplug_probe(const AVProbeData *p)
 
 static const AVClass modplug_class = {
     .class_name = "ModPlug demuxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/libopenmpt.c b/libavformat/libopenmpt.c
index 3ca59f506f..8f46ef2415 100644
--- a/libavformat/libopenmpt.c
+++ b/libavformat/libopenmpt.c
@@ -273,7 +273,6 @@  static int read_probe_openmpt(const AVProbeData *p)
 
 static const AVClass class_openmpt = {
     .class_name = "libopenmpt",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/librist.c b/libavformat/librist.c
index 5f27cacd44..e43dad7388 100644
--- a/libavformat/librist.c
+++ b/libavformat/librist.c
@@ -252,7 +252,6 @@  static int librist_write(URLContext *h, const uint8_t *buf, int size)
 
 static const AVClass librist_class = {
     .class_name = "librist",
-    .item_name  = av_default_item_name,
     .option     = librist_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/librtmp.c b/libavformat/librtmp.c
index b7e9fc81cf..800d2711aa 100644
--- a/libavformat/librtmp.c
+++ b/libavformat/librtmp.c
@@ -284,7 +284,6 @@  static const AVOption options[] = {
 #define RTMP_CLASS(flavor)\
 static const AVClass lib ## flavor ## _class = {\
     .class_name = "lib" #flavor " protocol",\
-    .item_name  = av_default_item_name,\
     .option     = options,\
     .version    = LIBAVUTIL_VERSION_INT,\
 };
diff --git a/libavformat/libsmbclient.c b/libavformat/libsmbclient.c
index f81fff2dfc..ae51956a6f 100644
--- a/libavformat/libsmbclient.c
+++ b/libavformat/libsmbclient.c
@@ -358,7 +358,6 @@  static const AVOption options[] = {
 
 static const AVClass libsmbclient_context_class = {
     .class_name     = "libsmbc",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c
index cd8f5b1e7d..1cc7ec9f86 100644
--- a/libavformat/libsrt.c
+++ b/libavformat/libsrt.c
@@ -727,7 +727,6 @@  static int libsrt_close(URLContext *h)
 
 static const AVClass libsrt_class = {
     .class_name = "libsrt",
-    .item_name  = av_default_item_name,
     .option     = libsrt_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/libssh.c b/libavformat/libssh.c
index 127faaabd3..6e434bf7cc 100644
--- a/libavformat/libssh.c
+++ b/libavformat/libssh.c
@@ -481,7 +481,6 @@  static const AVOption options[] = {
 
 static const AVClass libssh_context_class = {
     .class_name     = "libssh",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/libzmq.c b/libavformat/libzmq.c
index 04c72ac601..b4b0856121 100644
--- a/libavformat/libzmq.c
+++ b/libavformat/libzmq.c
@@ -187,7 +187,6 @@  static int zmq_proto_close(URLContext *h)
 
 static const AVClass zmq_context_class = {
     .class_name = "zmq",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 8f000f86be..f00a854fb0 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -4772,7 +4772,6 @@  static const AVOption options[] = {
 
 static const AVClass webm_dash_class = {
     .class_name = "WebM DASH Manifest demuxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 1457a6890c..bceefdc9b0 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -3516,7 +3516,6 @@  static const AVOption options[] = {
 
 static const AVClass matroska_webm_class = {
     .class_name = "matroska/webm muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/microdvddec.c b/libavformat/microdvddec.c
index e536d12b85..2d424dff4e 100644
--- a/libavformat/microdvddec.c
+++ b/libavformat/microdvddec.c
@@ -193,7 +193,6 @@  static const AVOption microdvd_options[] = {
 
 static const AVClass microdvd_class = {
     .class_name = "microdvddec",
-    .item_name  = av_default_item_name,
     .option     = microdvd_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 30cf7a15b0..4f413bfbd5 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -9320,7 +9320,6 @@  static const AVOption mov_options[] = {
 
 static const AVClass mov_class = {
     .class_name = "mov,mp4,m4a,3gp,3g2,mj2",
-    .item_name  = av_default_item_name,
     .option     = mov_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index a902e4d4e7..6b1ff408c7 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -125,7 +125,6 @@  static const AVOption options[] = {
 
 static const AVClass mov_isobmff_muxer_class = {
     .class_name = "mov/mp4/tgp/psp/tg2/ipod/ismv/f4v muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -7924,7 +7923,6 @@  static const AVCodecTag *const codec_avif_tags_list[] = { codec_avif_tags, NULL
 
 static const AVClass mov_avif_muxer_class = {
     .class_name = "avif muxer",
-    .item_name  = av_default_item_name,
     .option     = avif_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 05c13228bc..466338f4bf 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -604,7 +604,6 @@  static const AVOption options[] = {
 
 static const AVClass demuxer_class = {
     .class_name = "mp3",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEMUXER,
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c
index cb250a46ca..cc69a48238 100644
--- a/libavformat/mp3enc.c
+++ b/libavformat/mp3enc.c
@@ -515,7 +515,6 @@  static const AVOption options[] = {
 
 static const AVClass mp3_muxer_class = {
     .class_name     = "MP3 muxer",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 781c3162d6..0505aed57e 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -1040,7 +1040,6 @@  static const AVOption options[] = {
 
 static const AVClass vobsub_demuxer_class = {
     .class_name = "vobsub",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
index 12d9fb33ec..632ed3eae6 100644
--- a/libavformat/mpegenc.c
+++ b/libavformat/mpegenc.c
@@ -1298,7 +1298,6 @@  static const AVOption options[] = {
 
 static const AVClass mpeg_class = {
     .class_name = "mpeg/(s)vcd/vob/dvd muxer",
-    .item_name  = av_default_item_name,
     .version    = LIBAVUTIL_VERSION_INT,
     .option     = options,
 };
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index c7fd1f5d1f..a3173cf38d 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -209,7 +209,6 @@  static const AVOption options[] = {
 
 static const AVClass mpegts_class = {
     .class_name = "mpegts demuxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -228,7 +227,6 @@  static const AVOption raw_options[] = {
 
 static const AVClass mpegtsraw_class = {
     .class_name = "mpegtsraw demuxer",
-    .item_name  = av_default_item_name,
     .option     = raw_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 84edd418f0..6bdd09d8a5 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -2343,7 +2343,6 @@  static const AVOption options[] = {
 
 static const AVClass mpegts_muxer_class = {
     .class_name = "MPEGTS muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/mpjpeg.c b/libavformat/mpjpeg.c
index 81ace8e9ee..07b1da84a1 100644
--- a/libavformat/mpjpeg.c
+++ b/libavformat/mpjpeg.c
@@ -57,7 +57,6 @@  static const AVOption options[] = {
 
 static const AVClass mpjpeg_muxer_class = {
     .class_name = "mpjpeg_muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c
index 236aed716a..ccec42c781 100644
--- a/libavformat/mpjpegdec.c
+++ b/libavformat/mpjpegdec.c
@@ -363,7 +363,6 @@  static const AVOption mpjpeg_options[] = {
 
 static const AVClass mpjpeg_demuxer_class = {
     .class_name     = "MPJPEG demuxer",
-    .item_name      = av_default_item_name,
     .option         = mpjpeg_options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index e42975e7fd..417848b3ea 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -4308,7 +4308,6 @@  static const AVOption options[] = {
 
 static const AVClass demuxer_class = {
     .class_name = "mxf",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
     .category   = AV_CLASS_CATEGORY_DEMUXER,
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 53bd6aedca..074731b07f 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -3407,7 +3407,6 @@  static const AVOption mxf_options[] = {
 
 static const AVClass mxf_muxer_class = {
     .class_name     = "MXF muxer",
-    .item_name      = av_default_item_name,
     .option         = mxf_options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
@@ -3423,7 +3422,6 @@  static const AVOption d10_options[] = {
 
 static const AVClass mxf_d10_muxer_class = {
     .class_name     = "MXF-D10 muxer",
-    .item_name      = av_default_item_name,
     .option         = d10_options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
@@ -3439,7 +3437,6 @@  static const AVOption opatom_options[] = {
 
 static const AVClass mxf_opatom_muxer_class = {
     .class_name     = "MXF-OPAtom muxer",
-    .item_name      = av_default_item_name,
     .option         = opatom_options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index a5198c7ca9..4a96dec593 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -1248,7 +1248,6 @@  static const AVOption options[] = {
 
 static const AVClass class = {
     .class_name = "nutenc",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 69a66f586d..38ceb17495 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -97,7 +97,6 @@  static const AVOption options[] = {
 
 static const AVClass ogg_muxer_class = {
     .class_name = "Ogg (audio/video/Speex/Opus) muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/options.c b/libavformat/options.c
index 73e220bb7d..ee7757ca89 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -234,7 +234,6 @@  static const AVOption stream_options[] = {
 
 static const AVClass stream_class = {
     .class_name     = "AVStream",
-    .item_name      = av_default_item_name,
     .version        = LIBAVUTIL_VERSION_INT,
     .option         = stream_options,
 };
@@ -374,7 +373,6 @@  static const AVOption stream_group_options[] = {
 
 static const AVClass stream_group_class = {
     .class_name     = "AVStreamGroup",
-    .item_name      = av_default_item_name,
     .version        = LIBAVUTIL_VERSION_INT,
     .option         = stream_group_options,
     .child_next     = stream_group_child_next,
diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c
index 11ba0b5c0c..abaa435b44 100644
--- a/libavformat/pcmdec.c
+++ b/libavformat/pcmdec.c
@@ -124,7 +124,6 @@  static const AVOption pcm_options[] = {
 };
 static const AVClass pcm_demuxer_class = {
     .class_name = "pcm demuxer",
-    .item_name  = av_default_item_name,
     .option     = pcm_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -191,7 +190,6 @@  static const AVOption sln_options[] = {
 
 static const AVClass sln_demuxer_class = {
     .class_name = "sln demuxer",
-    .item_name  = av_default_item_name,
     .option     = sln_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/prompeg.c b/libavformat/prompeg.c
index 59faa824bb..98f25df453 100644
--- a/libavformat/prompeg.c
+++ b/libavformat/prompeg.c
@@ -129,7 +129,6 @@  static const AVOption options[] = {
 
 static const AVClass prompeg_class = {
     .class_name = "prompeg",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index 1dd7fafcf0..0070b0b412 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -126,7 +126,6 @@  static const AVOption rawvideo_options[] = {
 
 const AVClass ff_rawvideo_demuxer_class = {
     .class_name = "generic raw video demuxer",
-    .item_name  = av_default_item_name,
     .option     = rawvideo_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -139,7 +138,6 @@  static const AVOption raw_options[] = {
 
 const AVClass ff_raw_demuxer_class = {
     .class_name = "generic raw demuxer",
-    .item_name  = av_default_item_name,
     .option     = raw_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/rawvideodec.c b/libavformat/rawvideodec.c
index 514e4e044f..2b81dad86e 100644
--- a/libavformat/rawvideodec.c
+++ b/libavformat/rawvideodec.c
@@ -144,7 +144,6 @@  static const AVOption rawvideo_options[] = {
 
 static const AVClass rawvideo_demuxer_class = {
     .class_name = "rawvideo demuxer",
-    .item_name  = av_default_item_name,
     .option     = rawvideo_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -163,7 +162,6 @@  const AVInputFormat ff_rawvideo_demuxer = {
 
 static const AVClass bitpacked_demuxer_class = {
     .class_name = "bitpacked demuxer",
-    .item_name  = av_default_item_name,
     .option     = rawvideo_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -184,7 +182,6 @@  const AVInputFormat ff_bitpacked_demuxer = {
 
 static const AVClass v210_demuxer_class = {
     .class_name = "v210(x) demuxer",
-    .item_name  = av_default_item_name,
     .option     = rawvideo_options + 1,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/rtmpcrypt.c b/libavformat/rtmpcrypt.c
index a835ab263f..b7b610f4e7 100644
--- a/libavformat/rtmpcrypt.c
+++ b/libavformat/rtmpcrypt.c
@@ -320,7 +320,6 @@  static const AVOption ffrtmpcrypt_options[] = {
 
 static const AVClass ffrtmpcrypt_class = {
     .class_name = "ffrtmpcrypt",
-    .item_name  = av_default_item_name,
     .option     = ffrtmpcrypt_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/rtmphttp.c b/libavformat/rtmphttp.c
index c920c19ab5..1f88243b00 100644
--- a/libavformat/rtmphttp.c
+++ b/libavformat/rtmphttp.c
@@ -268,7 +268,6 @@  static const AVOption ffrtmphttp_options[] = {
 
 static const AVClass ffrtmphttp_class = {
     .class_name = "ffrtmphttp",
-    .item_name  = av_default_item_name,
     .option     = ffrtmphttp_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 98718bc6da..5f6dfcb2fe 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -3161,7 +3161,6 @@  static const AVOption rtmp_options[] = {
 #define RTMP_PROTOCOL_1(flavor)                  \
 static const AVClass flavor##_class = {          \
     .class_name = #flavor,                       \
-    .item_name  = av_default_item_name,          \
     .option     = rtmp_options,                  \
     .version    = LIBAVUTIL_VERSION_INT,         \
 };                                               \
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index a8d296a154..472cb97e00 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -40,7 +40,6 @@  static const AVOption options[] = {
 
 static const AVClass rtp_muxer_class = {
     .class_name = "RTP muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/rtpenc_mpegts.c b/libavformat/rtpenc_mpegts.c
index 0d6403a048..c00461c8eb 100644
--- a/libavformat/rtpenc_mpegts.c
+++ b/libavformat/rtpenc_mpegts.c
@@ -183,7 +183,6 @@  static const AVOption options[] = {
 
 static const AVClass rtp_mpegts_class = {
     .class_name = "rtp_mpegts muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index cac361047a..5b34271b75 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -86,7 +86,6 @@  static const AVOption options[] = {
 
 static const AVClass rtp_class = {
     .class_name = "rtp",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 7d1d3a75d4..583f5338e8 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -2479,7 +2479,6 @@  static int sdp_read_close(AVFormatContext *s)
 
 static const AVClass sdp_demuxer_class = {
     .class_name     = "SDP demuxer",
-    .item_name      = av_default_item_name,
     .option         = sdp_options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
@@ -2638,7 +2637,6 @@  fail:
 
 static const AVClass rtp_demuxer_class = {
     .class_name     = "RTP demuxer",
-    .item_name      = av_default_item_name,
     .option         = rtp_options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
index bbabec7db8..39fd92fb66 100644
--- a/libavformat/rtspdec.c
+++ b/libavformat/rtspdec.c
@@ -987,7 +987,6 @@  static int rtsp_read_seek(AVFormatContext *s, int stream_index,
 
 static const AVClass rtsp_demuxer_class = {
     .class_name     = "RTSP demuxer",
-    .item_name      = av_default_item_name,
     .option         = ff_rtsp_options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c
index 3d444ccbfd..96031dcdba 100644
--- a/libavformat/rtspenc.c
+++ b/libavformat/rtspenc.c
@@ -38,7 +38,6 @@ 
 
 static const AVClass rtsp_muxer_class = {
     .class_name = "RTSP muxer",
-    .item_name  = av_default_item_name,
     .option     = ff_rtsp_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/sbgdec.c b/libavformat/sbgdec.c
index b2662ea418..7eaebcc652 100644
--- a/libavformat/sbgdec.c
+++ b/libavformat/sbgdec.c
@@ -1524,7 +1524,6 @@  static const AVOption sbg_options[] = {
 
 static const AVClass sbg_demuxer_class = {
     .class_name = "sbg_demuxer",
-    .item_name  = av_default_item_name,
     .option     = sbg_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/sctp.c b/libavformat/sctp.c
index 9d9e90097e..703937ce66 100644
--- a/libavformat/sctp.c
+++ b/libavformat/sctp.c
@@ -170,7 +170,6 @@  static const AVOption options[] = {
 
 static const AVClass sctp_class = {
     .class_name = "sctp",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 2a82f39f31..5c97114037 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -1084,7 +1084,6 @@  static const AVOption options[] = {
 
 static const AVClass seg_class = {
     .class_name = "(stream) segment muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/serdec.c b/libavformat/serdec.c
index 639c899249..ee947644e3 100644
--- a/libavformat/serdec.c
+++ b/libavformat/serdec.c
@@ -127,7 +127,6 @@  static const AVOption ser_options[] = {
 
 static const AVClass ser_demuxer_class = {
     .class_name = "ser demuxer",
-    .item_name  = av_default_item_name,
     .option     = ser_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c
index 0379e9a079..f556c14496 100644
--- a/libavformat/smoothstreamingenc.c
+++ b/libavformat/smoothstreamingenc.c
@@ -635,7 +635,6 @@  static const AVOption options[] = {
 
 static const AVClass ism_class = {
     .class_name = "smooth streaming muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/spdifenc.c b/libavformat/spdifenc.c
index ca38674626..6bb187a416 100644
--- a/libavformat/spdifenc.c
+++ b/libavformat/spdifenc.c
@@ -103,7 +103,6 @@  static const AVOption options[] = {
 
 static const AVClass spdif_class = {
     .class_name     = "spdif",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/srtpproto.c b/libavformat/srtpproto.c
index 61669e05ad..e2984bc3ee 100644
--- a/libavformat/srtpproto.c
+++ b/libavformat/srtpproto.c
@@ -47,7 +47,6 @@  static const AVOption options[] = {
 
 static const AVClass srtp_context_class = {
     .class_name     = "srtp",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/subfile.c b/libavformat/subfile.c
index 633a9e3c62..4e2872d63a 100644
--- a/libavformat/subfile.c
+++ b/libavformat/subfile.c
@@ -44,7 +44,6 @@  static const AVOption subfile_options[] = {
 
 static const AVClass subfile_class = {
     .class_name = "subfile",
-    .item_name  = av_default_item_name,
     .option     = subfile_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index db41394a84..87a074ec18 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -69,7 +69,6 @@  static const AVOption options[] = {
 
 static const AVClass tcp_class = {
     .class_name = "tcp",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/tedcaptionsdec.c b/libavformat/tedcaptionsdec.c
index a8aa9d9cf9..eea871f0ec 100644
--- a/libavformat/tedcaptionsdec.c
+++ b/libavformat/tedcaptionsdec.c
@@ -42,7 +42,6 @@  static const AVOption tedcaptions_options[] = {
 
 static const AVClass tedcaptions_demuxer_class = {
     .class_name = "tedcaptions_demuxer",
-    .item_name  = av_default_item_name,
     .option     = tedcaptions_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/tee.c b/libavformat/tee.c
index cfa8346bc9..8f161d51ee 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -74,7 +74,6 @@  static const AVOption options[] = {
 
 static const AVClass tee_muxer_class = {
     .class_name = "Tee muxer",
-    .item_name  = av_default_item_name,
     .option = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/tls_gnutls.c b/libavformat/tls_gnutls.c
index 2ab38a199b..8907819d0f 100644
--- a/libavformat/tls_gnutls.c
+++ b/libavformat/tls_gnutls.c
@@ -294,7 +294,6 @@  static const AVOption options[] = {
 
 static const AVClass tls_class = {
     .class_name = "tls",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/tls_libtls.c b/libavformat/tls_libtls.c
index 22858d4867..68a6572828 100644
--- a/libavformat/tls_libtls.c
+++ b/libavformat/tls_libtls.c
@@ -198,7 +198,6 @@  static const AVOption options[] = {
 
 static const AVClass tls_class = {
     .class_name = "tls",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/tls_mbedtls.c b/libavformat/tls_mbedtls.c
index 8503523b6d..7434f0826d 100644
--- a/libavformat/tls_mbedtls.c
+++ b/libavformat/tls_mbedtls.c
@@ -350,7 +350,6 @@  static const AVOption options[] = {
 
 static const AVClass tls_class = {
     .class_name = "tls",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c
index 8bf766c01f..112d35f91f 100644
--- a/libavformat/tls_openssl.c
+++ b/libavformat/tls_openssl.c
@@ -380,7 +380,6 @@  static const AVOption options[] = {
 
 static const AVClass tls_class = {
     .class_name = "tls",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/tls_schannel.c b/libavformat/tls_schannel.c
index d4959f75fa..32c7607b8a 100644
--- a/libavformat/tls_schannel.c
+++ b/libavformat/tls_schannel.c
@@ -602,7 +602,6 @@  static const AVOption options[] = {
 
 static const AVClass tls_class = {
     .class_name = "tls",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/tls_securetransport.c b/libavformat/tls_securetransport.c
index f6a1a5e7b6..7b8d03130d 100644
--- a/libavformat/tls_securetransport.c
+++ b/libavformat/tls_securetransport.c
@@ -409,7 +409,6 @@  static const AVOption options[] = {
 
 static const AVClass tls_class = {
     .class_name = "tls",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/tty.c b/libavformat/tty.c
index fbea3196fa..62f570636e 100644
--- a/libavformat/tty.c
+++ b/libavformat/tty.c
@@ -173,7 +173,6 @@  static const AVOption options[] = {
 
 static const AVClass tty_demuxer_class = {
     .class_name     = "TTY demuxer",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/udp.c b/libavformat/udp.c
index d9514f5026..ecac0ef40b 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -144,14 +144,12 @@  static const AVOption options[] = {
 
 static const AVClass udp_class = {
     .class_name = "udp",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
 static const AVClass udplite_context_class = {
     .class_name     = "udplite",
-    .item_name      = av_default_item_name,
     .option         = options,
     .version        = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/unix.c b/libavformat/unix.c
index e668744580..31a01efeb5 100644
--- a/libavformat/unix.c
+++ b/libavformat/unix.c
@@ -55,7 +55,6 @@  static const AVOption unix_options[] = {
 
 static const AVClass unix_class = {
     .class_name = "unix",
-    .item_name  = av_default_item_name,
     .option     = unix_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/vapoursynth.c b/libavformat/vapoursynth.c
index b79ecfcf1b..b8778a7398 100644
--- a/libavformat/vapoursynth.c
+++ b/libavformat/vapoursynth.c
@@ -475,7 +475,6 @@  static av_cold int probe_vs(const AVProbeData *p)
 
 static const AVClass class_vs = {
     .class_name = "VapourSynth demuxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index 0c6629b157..7066609365 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -824,7 +824,6 @@  static int wav_read_seek(AVFormatContext *s,
 
 static const AVClass wav_demuxer_class = {
     .class_name = "WAV demuxer",
-    .item_name  = av_default_item_name,
     .option     = demux_options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
@@ -987,7 +986,6 @@  static int w64_read_header(AVFormatContext *s)
 
 static const AVClass w64_demuxer_class = {
     .class_name = "W64 demuxer",
-    .item_name  = av_default_item_name,
     .option     = &demux_options[W64_DEMUXER_OPTIONS_OFFSET],
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c
index 82acb9ef0f..34f4640e91 100644
--- a/libavformat/wavenc.c
+++ b/libavformat/wavenc.c
@@ -503,7 +503,6 @@  static const AVOption options[] = {
 
 static const AVClass wav_muxer_class = {
     .class_name = "WAV muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/webm_chunk.c b/libavformat/webm_chunk.c
index 494a83f507..0ce0c2b630 100644
--- a/libavformat/webm_chunk.c
+++ b/libavformat/webm_chunk.c
@@ -287,7 +287,6 @@  static const AVOption options[] = {
 
 static const AVClass webm_chunk_class = {
     .class_name = "WebM Chunk Muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c
index 31ea3c6e8c..a8c8472b70 100644
--- a/libavformat/webmdashenc.c
+++ b/libavformat/webmdashenc.c
@@ -537,7 +537,6 @@  static const AVOption options[] = {
 
 static const AVClass webm_dash_class = {
     .class_name = "WebM DASH Manifest muxer",
-    .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
 };
diff --git a/libavformat/webpenc.c b/libavformat/webpenc.c
index ea7a321975..9d1bd917f5 100644
--- a/libavformat/webpenc.c
+++ b/libavformat/webpenc.c
@@ -220,7 +220,6 @@  static const AVOption options[] = {
 
 static const AVClass webp_muxer_class = {
     .class_name = "WebP muxer",
-    .item_name  = av_default_item_name,
     .version    = LIBAVUTIL_VERSION_INT,
     .option     = options,
 };
diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c
index 0b2fc77168..d6ba04db44 100644
--- a/libavformat/webvttdec.c
+++ b/libavformat/webvttdec.c
@@ -205,7 +205,6 @@  static const AVOption options[] = {
 
 static const AVClass webvtt_demuxer_class = {
     .class_name  = "WebVTT demuxer",
-    .item_name   = av_default_item_name,
     .option      = options,
     .version     = LIBAVUTIL_VERSION_INT,
 };
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,
  *      };