diff mbox series

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

Message ID 20240119123615.24595-1-anton@khirnov.net
State Accepted
Commit 08bebeb1bed3feee99d30cd6066d3466291dc8ed
Headers show
Series [FFmpeg-devel] Revert "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

Anton Khirnov Jan. 19, 2024, 12:36 p.m. UTC
Some callers assume that item_name is always set, so this may be
considered an API break.

This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.
---
 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 insertions(+)

Comments

James Almer Jan. 19, 2024, 1:01 p.m. UTC | #1
On 1/19/2024 9:36 AM, Anton Khirnov wrote:
> Some callers assume that item_name is always set, so this may be
> considered an API break.
> 
> This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.

Ok.

We could fwiw announce that starting with an arbitrary major soname 
item_name can be NULL, and revert this revert.
Anton Khirnov Jan. 19, 2024, 1:04 p.m. UTC | #2
Quoting James Almer (2024-01-19 14:01:47)
> On 1/19/2024 9:36 AM, Anton Khirnov wrote:
> > Some callers assume that item_name is always set, so this may be
> > considered an API break.
> > 
> > This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.
> 
> Ok.
> 
> We could fwiw announce that starting with an arbitrary major soname 
> item_name can be NULL, and revert this revert.

Might be better to just replace it with a new field, since otherwise we
cannot signal this to the users.
diff mbox series

Patch

diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c
index 80109df0ae..5d272f5472 100644
--- a/fftools/ffmpeg_mux_init.c
+++ b/fftools/ffmpeg_mux_init.c
@@ -2194,6 +2194,7 @@  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 c189cf373b..cf31106fe1 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -332,6 +332,7 @@  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 e1c2f07896..73072a2851 100644
--- a/fftools/ffplay_renderer.c
+++ b/fftools/ffplay_renderer.c
@@ -776,6 +776,7 @@  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 f5b73c9f2f..02d7048c42 100644
--- a/fftools/opt_common.c
+++ b/fftools/opt_common.c
@@ -1069,6 +1069,7 @@  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 9975805573..2b3509c85f 100644
--- a/libavcodec/aacdec_template.c
+++ b/libavcodec/aacdec_template.c
@@ -3447,6 +3447,7 @@  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 20d42a627b..83c23cc2de 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -1407,6 +1407,7 @@  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 cdab83d647..c9e5cda69c 100644
--- a/libavcodec/ac3dec_fixed.c
+++ b/libavcodec/ac3dec_fixed.c
@@ -165,6 +165,7 @@  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 c49ee2d94d..39d3cbd282 100644
--- a/libavcodec/ac3dec_float.c
+++ b/libavcodec/ac3dec_float.c
@@ -56,6 +56,7 @@  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 df76dda6ee..56c8d239c5 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -130,6 +130,7 @@  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 7f18fc2daf..63afffc58f 100644
--- a/libavcodec/adpcmenc.c
+++ b/libavcodec/adpcmenc.c
@@ -989,6 +989,7 @@  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 18791d426d..538d1e5984 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -611,6 +611,7 @@  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 c28c2577f4..9598e5861e 100644
--- a/libavcodec/alacenc.c
+++ b/libavcodec/alacenc.c
@@ -643,6 +643,7 @@  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 949251d4e8..3f164ccc59 100644
--- a/libavcodec/amfenc_av1.c
+++ b/libavcodec/amfenc_av1.c
@@ -465,6 +465,7 @@  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 a6b82365ad..bd544d12df 100644
--- a/libavcodec/amfenc_h264.c
+++ b/libavcodec/amfenc_h264.c
@@ -518,6 +518,7 @@  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 9db01db28d..352564a301 100644
--- a/libavcodec/amfenc_hevc.c
+++ b/libavcodec/amfenc_hevc.c
@@ -433,6 +433,7 @@  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 988f23d8bb..d31c067152 100644
--- a/libavcodec/apedec.c
+++ b/libavcodec/apedec.c
@@ -1744,6 +1744,7 @@  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 ba3867f358..42ab7ae6e4 100644
--- a/libavcodec/audiotoolboxenc.c
+++ b/libavcodec/audiotoolboxenc.c
@@ -610,6 +610,7 @@  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 494245f333..41b02cc836 100644
--- a/libavcodec/av1_metadata_bsf.c
+++ b/libavcodec/av1_metadata_bsf.c
@@ -211,6 +211,7 @@  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 da05a0f039..7ffa7821e9 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -1485,6 +1485,7 @@  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 accea49828..1d9ac5ab44 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -1277,6 +1277,7 @@  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 5a69d9216b..f91c92b373 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -934,6 +934,7 @@  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 75f41e701b..f447438491 100644
--- a/libavcodec/cfhdenc.c
+++ b/libavcodec/cfhdenc.c
@@ -849,6 +849,7 @@  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 6bf5485871..f15325ad0d 100644
--- a/libavcodec/cinepakenc.c
+++ b/libavcodec/cinepakenc.c
@@ -148,6 +148,7 @@  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 ee03dd3e2e..31ad5ce0cf 100644
--- a/libavcodec/cljrenc.c
+++ b/libavcodec/cljrenc.c
@@ -103,6 +103,7 @@  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 e419d8e3ce..86f6cfa6c1 100644
--- a/libavcodec/crystalhd.c
+++ b/libavcodec/crystalhd.c
@@ -778,6 +778,7 @@  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 02022148e0..da37207cf2 100644
--- a/libavcodec/cuviddec.c
+++ b/libavcodec/cuviddec.c
@@ -1155,6 +1155,7 @@  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 cf12124a58..cc23731b90 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -410,6 +410,7 @@  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 2b034b5648..c731d79381 100644
--- a/libavcodec/dcaenc.c
+++ b/libavcodec/dcaenc.c
@@ -1300,6 +1300,7 @@  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 aa273b5c60..f52a2e9918 100644
--- a/libavcodec/dnxhdenc.c
+++ b/libavcodec/dnxhdenc.c
@@ -73,6 +73,7 @@  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 c80cf3ae62..b8dac0fa3f 100644
--- a/libavcodec/dolby_e.c
+++ b/libavcodec/dolby_e.c
@@ -1300,6 +1300,7 @@  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 373fc9dad8..5506d5ed65 100644
--- a/libavcodec/dump_extradata_bsf.c
+++ b/libavcodec/dump_extradata_bsf.c
@@ -93,6 +93,7 @@  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 19ac936e05..131c6fcbe6 100644
--- a/libavcodec/dv_error_marker_bsf.c
+++ b/libavcodec/dv_error_marker_bsf.c
@@ -123,6 +123,7 @@  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 ad05aa0bf3..bcc607d1d7 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -1564,6 +1564,7 @@  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 11c3cc5e35..a5da0d7b08 100644
--- a/libavcodec/dvdsubdec.c
+++ b/libavcodec/dvdsubdec.c
@@ -701,6 +701,7 @@  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 12745ae40b..06c2cf5e5a 100644
--- a/libavcodec/dvdsubenc.c
+++ b/libavcodec/dvdsubenc.c
@@ -496,6 +496,7 @@  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 f0820bb2ee..ce21247081 100644
--- a/libavcodec/dvenc.c
+++ b/libavcodec/dvenc.c
@@ -1231,6 +1231,7 @@  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 afadd77345..4b3236d4e5 100644
--- a/libavcodec/eac3enc.c
+++ b/libavcodec/eac3enc.c
@@ -35,6 +35,7 @@ 
 
 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 9de8b8a771..af7640d7e1 100644
--- a/libavcodec/evrcdec.c
+++ b/libavcodec/evrcdec.c
@@ -924,6 +924,7 @@  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 a05f8bada6..b30d3b7404 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -2345,6 +2345,7 @@  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 ded7fad18b..36327f498c 100644
--- a/libavcodec/exrenc.c
+++ b/libavcodec/exrenc.c
@@ -535,6 +535,7 @@  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 aee63d1b5d..baa629295f 100644
--- a/libavcodec/extract_extradata_bsf.c
+++ b/libavcodec/extract_extradata_bsf.c
@@ -457,6 +457,7 @@  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 5bd00f5d9e..2778c63012 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -1263,6 +1263,7 @@  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 ddda8effe0..fb99802137 100644
--- a/libavcodec/fic.c
+++ b/libavcodec/fic.c
@@ -479,6 +479,7 @@  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 a67d55e57f..9336753148 100644
--- a/libavcodec/filter_units_bsf.c
+++ b/libavcodec/filter_units_bsf.c
@@ -268,6 +268,7 @@  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 c1d0bd9ca6..284e945ba5 100644
--- a/libavcodec/fitsdec.c
+++ b/libavcodec/fitsdec.c
@@ -316,6 +316,7 @@  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 95aee363f4..ed2de14d0a 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -820,6 +820,7 @@  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 605e5db974..a449b73235 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -1743,6 +1743,7 @@  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 fc6b7058af..70bc136765 100644
--- a/libavcodec/frwu.c
+++ b/libavcodec/frwu.c
@@ -110,6 +110,7 @@  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 9f40e0b740..231f1d32eb 100644
--- a/libavcodec/g722dec.c
+++ b/libavcodec/g722dec.c
@@ -51,6 +51,7 @@  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 4c8ebc9075..5fe4a21d9b 100644
--- a/libavcodec/g723_1dec.c
+++ b/libavcodec/g723_1dec.c
@@ -1105,6 +1105,7 @@  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 f25e60b21b..6c5638760d 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -388,6 +388,7 @@  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 2a132fb18c..11add64468 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -542,6 +542,7 @@  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 f99eaff73b..a97a6d15fc 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -542,6 +542,7 @@  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 9a745b056b..39b9e8eee4 100644
--- a/libavcodec/h264_metadata_bsf.c
+++ b/libavcodec/h264_metadata_bsf.c
@@ -703,6 +703,7 @@  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 2c0cdf919d..9f5893c512 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -1104,6 +1104,7 @@  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 4fdd2a532e..6787bd14a1 100644
--- a/libavcodec/h265_metadata_bsf.c
+++ b/libavcodec/h265_metadata_bsf.c
@@ -483,6 +483,7 @@  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 09e91dd80d..1f0f875cfe 100644
--- a/libavcodec/h266_metadata_bsf.c
+++ b/libavcodec/h266_metadata_bsf.c
@@ -130,6 +130,7 @@  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 eb492c9db5..7de7358e3d 100644
--- a/libavcodec/hapenc.c
+++ b/libavcodec/hapenc.c
@@ -341,6 +341,7 @@  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 cf6872fe2d..0d9b40aaa6 100644
--- a/libavcodec/hapqa_extract_bsf.c
+++ b/libavcodec/hapqa_extract_bsf.c
@@ -120,6 +120,7 @@  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 f21d15fe72..b5311ae510 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -3676,6 +3676,7 @@  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 73f543ac24..b02b3c7a9a 100644
--- a/libavcodec/huffyuvenc.c
+++ b/libavcodec/huffyuvenc.c
@@ -1066,12 +1066,14 @@  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 6acb13299a..97abfb3f45 100644
--- a/libavcodec/ituh263enc.c
+++ b/libavcodec/ituh263enc.c
@@ -896,6 +896,7 @@  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,
 };
@@ -926,6 +927,7 @@  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 e0eb73281a..5f95b772d1 100644
--- a/libavcodec/j2kenc.c
+++ b/libavcodec/j2kenc.c
@@ -1827,6 +1827,7 @@  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 6e662761b0..691cfbd891 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -2543,6 +2543,7 @@  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 89488d35cb..53394102df 100644
--- a/libavcodec/jpeglsenc.c
+++ b/libavcodec/jpeglsenc.c
@@ -466,6 +466,7 @@  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 5d286fc98b..aa800834fe 100644
--- a/libavcodec/libaomenc.c
+++ b/libavcodec/libaomenc.c
@@ -1546,6 +1546,7 @@  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 0706b50c1c..29479e375d 100644
--- a/libavcodec/libaribb24.c
+++ b/libavcodec/libaribb24.c
@@ -387,6 +387,7 @@  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 b32d87d5a6..e87f303aa8 100644
--- a/libavcodec/libaribcaption.c
+++ b/libavcodec/libaribcaption.c
@@ -1161,6 +1161,7 @@  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 950d48685e..83f68e85c7 100644
--- a/libavcodec/libcodec2.c
+++ b/libavcodec/libcodec2.c
@@ -43,6 +43,7 @@  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 3a35bd1825..11cdbca274 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -682,6 +682,7 @@  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 6b201b64ee..8c1586e25e 100644
--- a/libavcodec/libfdk-aacdec.c
+++ b/libavcodec/libfdk-aacdec.c
@@ -105,6 +105,7 @@  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 fac720b12f..d400ac2e7c 100644
--- a/libavcodec/libfdk-aacenc.c
+++ b/libavcodec/libfdk-aacenc.c
@@ -86,6 +86,7 @@  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 031f67c9bc..9ca90bf0c6 100644
--- a/libavcodec/libilbc.c
+++ b/libavcodec/libilbc.c
@@ -62,6 +62,7 @@  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,
 };
@@ -146,6 +147,7 @@  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 ab2b5617b3..67be8a01ca 100644
--- a/libavcodec/libjxlenc.c
+++ b/libavcodec/libjxlenc.c
@@ -471,6 +471,7 @@  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 8d52df142d..0711d9ab38 100644
--- a/libavcodec/libkvazaar.c
+++ b/libavcodec/libkvazaar.c
@@ -316,6 +316,7 @@  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 4ad03900e8..312bc4230f 100644
--- a/libavcodec/libmp3lame.c
+++ b/libavcodec/libmp3lame.c
@@ -321,6 +321,7 @@  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 73b623b6e7..641a156129 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -190,6 +190,7 @@  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 4d303cd9e7..6f231d22b2 100644
--- a/libavcodec/libopenh264enc.c
+++ b/libavcodec/libopenh264enc.c
@@ -90,6 +90,7 @@  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 e9aa5b9649..009c7a4377 100644
--- a/libavcodec/libopenjpegenc.c
+++ b/libavcodec/libopenjpegenc.c
@@ -749,6 +749,7 @@  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 a1e47fd06c..9b9a610343 100644
--- a/libavcodec/libopusdec.c
+++ b/libavcodec/libopusdec.c
@@ -225,6 +225,7 @@  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 1ab954f06a..f395d84af5 100644
--- a/libavcodec/libopusenc.c
+++ b/libavcodec/libopusenc.c
@@ -564,6 +564,7 @@  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 68bf16232a..56539435a7 100644
--- a/libavcodec/librav1e.c
+++ b/libavcodec/librav1e.c
@@ -667,6 +667,7 @@  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 25d707e1a5..c328fbc774 100644
--- a/libavcodec/librsvgdec.c
+++ b/libavcodec/librsvgdec.c
@@ -156,6 +156,7 @@  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 3180a93150..9fdb247863 100644
--- a/libavcodec/libspeexenc.c
+++ b/libavcodec/libspeexenc.c
@@ -330,6 +330,7 @@  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 0679daad37..862192945b 100644
--- a/libavcodec/libsvtav1.c
+++ b/libavcodec/libsvtav1.c
@@ -671,6 +671,7 @@  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 bedb2e1fed..9c0156aa25 100644
--- a/libavcodec/libtwolame.c
+++ b/libavcodec/libtwolame.c
@@ -194,6 +194,7 @@  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 a802ccdcf8..02b8941a6d 100644
--- a/libavcodec/libvo-amrwbenc.c
+++ b/libavcodec/libvo-amrwbenc.c
@@ -47,6 +47,7 @@  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 dedc43563b..6331cf0d79 100644
--- a/libavcodec/libvorbisenc.c
+++ b/libavcodec/libvorbisenc.c
@@ -67,6 +67,7 @@  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 7ad399eb9c..80988a2608 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -2023,6 +2023,7 @@  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,
 };
@@ -2095,6 +2096,7 @@  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 da9d41622e..761219e50e 100644
--- a/libavcodec/libwebpenc_common.c
+++ b/libavcodec/libwebpenc_common.c
@@ -53,6 +53,7 @@  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 5ea9540d30..182e20f622 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -1462,6 +1462,7 @@  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,
 };
@@ -1503,6 +1504,7 @@  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,
 };
@@ -1534,6 +1536,7 @@  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 7f4552f685..447e6da25f 100644
--- a/libavcodec/libx265.c
+++ b/libavcodec/libx265.c
@@ -873,6 +873,7 @@  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 0e0ec32b8c..6c29539f24 100644
--- a/libavcodec/libxavs.c
+++ b/libavcodec/libxavs.c
@@ -411,6 +411,7 @@  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 bf2b08a60c..c493ddc325 100644
--- a/libavcodec/libxavs2.c
+++ b/libavcodec/libxavs2.c
@@ -274,6 +274,7 @@  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 5dec91ee23..58ef90d929 100644
--- a/libavcodec/libxevd.c
+++ b/libavcodec/libxevd.c
@@ -517,6 +517,7 @@  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 b71d14f1df..c10b7de023 100644
--- a/libavcodec/libxeve.c
+++ b/libavcodec/libxeve.c
@@ -580,6 +580,7 @@  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 72577f5b6a..aba875b6b8 100644
--- a/libavcodec/libxvid.c
+++ b/libavcodec/libxvid.c
@@ -892,6 +892,7 @@  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 878027275f..45e30eb01c 100644
--- a/libavcodec/libzvbi-teletextdec.c
+++ b/libavcodec/libzvbi-teletextdec.c
@@ -806,6 +806,7 @@  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 c3031631a2..aa62beac71 100644
--- a/libavcodec/ljpegenc.c
+++ b/libavcodec/ljpegenc.c
@@ -306,6 +306,7 @@  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 a74212086b..ccd6a54936 100644
--- a/libavcodec/magicyuvenc.c
+++ b/libavcodec/magicyuvenc.c
@@ -666,6 +666,7 @@  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 f2fb392329..0880ddd3ef 100644
--- a/libavcodec/mediacodec_wrapper.c
+++ b/libavcodec/mediacodec_wrapper.c
@@ -136,6 +136,7 @@  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,
 };
 
@@ -255,6 +256,7 @@  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,
 };
 
@@ -1987,11 +1989,13 @@  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 9698bd2079..b8587289a2 100644
--- a/libavcodec/mediacodecdec.c
+++ b/libavcodec/mediacodecdec.c
@@ -558,6 +558,7 @@  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 cab0189a9f..7eae542248 100644
--- a/libavcodec/mediacodecenc.c
+++ b/libavcodec/mediacodecenc.c
@@ -607,6 +607,7 @@  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 8bb6f1d38d..3c50a6c074 100644
--- a/libavcodec/mfenc.c
+++ b/libavcodec/mfenc.c
@@ -1226,6 +1226,7 @@  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 0eb7dd988e..81f724d230 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -2991,6 +2991,7 @@  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 c3b4723391..508772987f 100644
--- a/libavcodec/mjpegenc.c
+++ b/libavcodec/mjpegenc.c
@@ -637,6 +637,7 @@  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,
 };
@@ -666,6 +667,7 @@  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 5aac08504b..ead5ecee76 100644
--- a/libavcodec/mlpdec.c
+++ b/libavcodec/mlpdec.c
@@ -1444,12 +1444,14 @@  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 563f53ee34..895362faca 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -2289,6 +2289,7 @@  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 c344d1f449..2dc7bbee04 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -825,6 +825,7 @@  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 b82104d164..f799252bf2 100644
--- a/libavcodec/movtextdec.c
+++ b/libavcodec/movtextdec.c
@@ -586,6 +586,7 @@  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 fc9ff2d7af..7aa74d7c9d 100644
--- a/libavcodec/movtextenc.c
+++ b/libavcodec/movtextenc.c
@@ -694,6 +694,7 @@  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 01d00a8147..0135623c0e 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -1225,6 +1225,7 @@  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 d491242338..1aa6e02791 100644
--- a/libavcodec/mpeg2_metadata_bsf.c
+++ b/libavcodec/mpeg2_metadata_bsf.c
@@ -223,6 +223,7 @@  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 7485c5618b..7e05f2eeca 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -3847,6 +3847,7 @@  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 5f5b9aebc4..d1e50612dd 100644
--- a/libavcodec/mpeg4videoenc.c
+++ b/libavcodec/mpeg4videoenc.c
@@ -1388,6 +1388,7 @@  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 c192be6ca4..c20e364cac 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -99,6 +99,7 @@  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 3f2aaba5d9..7bdaa3c1db 100644
--- a/libavcodec/noise_bsf.c
+++ b/libavcodec/noise_bsf.c
@@ -220,6 +220,7 @@  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 4be29b0273..9f36796c4b 100644
--- a/libavcodec/nvenc_av1.c
+++ b/libavcodec/nvenc_av1.c
@@ -167,6 +167,7 @@  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 8cad2cca99..85a13634a3 100644
--- a/libavcodec/nvenc_h264.c
+++ b/libavcodec/nvenc_h264.c
@@ -233,6 +233,7 @@  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 388e5dd0cd..840df6da8a 100644
--- a/libavcodec/nvenc_hevc.c
+++ b/libavcodec/nvenc_hevc.c
@@ -214,6 +214,7 @@  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 a4c873120a..82fd492071 100644
--- a/libavcodec/omx.c
+++ b/libavcodec/omx.c
@@ -933,6 +933,7 @@  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,
 };
@@ -953,6 +954,7 @@  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 3b243c76ce..2a0f86cec3 100644
--- a/libavcodec/opus_metadata_bsf.c
+++ b/libavcodec/opus_metadata_bsf.c
@@ -49,6 +49,7 @@  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 f9c334247d..c5f06e0600 100644
--- a/libavcodec/opusdec.c
+++ b/libavcodec/opusdec.c
@@ -762,6 +762,7 @@  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 2b590d2b50..a2f74a347b 100644
--- a/libavcodec/opusenc.c
+++ b/libavcodec/opusenc.c
@@ -719,6 +719,7 @@  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 d5eb6e9858..28b5722ac9 100644
--- a/libavcodec/pcm_rechunk_bsf.c
+++ b/libavcodec/pcm_rechunk_bsf.c
@@ -187,6 +187,7 @@  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 26fdc2b964..5f76f12615 100644
--- a/libavcodec/pgssubdec.c
+++ b/libavcodec/pgssubdec.c
@@ -684,6 +684,7 @@  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 64f8212e7f..07e8d460bd 100644
--- a/libavcodec/photocd.c
+++ b/libavcodec/photocd.c
@@ -454,6 +454,7 @@  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 668d531ef6..f0650962d2 100644
--- a/libavcodec/pngenc.c
+++ b/libavcodec/pngenc.c
@@ -1189,6 +1189,7 @@  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 18dac5424b..fb001b38d7 100644
--- a/libavcodec/prores_metadata_bsf.c
+++ b/libavcodec/prores_metadata_bsf.c
@@ -161,6 +161,7 @@  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 a348b7622a..5c93ea6566 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -936,6 +936,7 @@  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 61231b8cfb..92351ecc4a 100644
--- a/libavcodec/proresenc_kostya.c
+++ b/libavcodec/proresenc_kostya.c
@@ -1367,6 +1367,7 @@  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 e2db8701bb..559f63698a 100644
--- a/libavcodec/qsvdec.c
+++ b/libavcodec/qsvdec.c
@@ -1110,6 +1110,7 @@  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 92433dc2f8..c697845d7b 100644
--- a/libavcodec/qsvenc_av1.c
+++ b/libavcodec/qsvenc_av1.c
@@ -123,6 +123,7 @@  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 5627ca2c25..071a9a79e9 100644
--- a/libavcodec/qsvenc_h264.c
+++ b/libavcodec/qsvenc_h264.c
@@ -172,6 +172,7 @@  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 b3717022b9..c5b7ac7cc4 100644
--- a/libavcodec/qsvenc_hevc.c
+++ b/libavcodec/qsvenc_hevc.c
@@ -368,6 +368,7 @@  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 dc00942d4f..2add12adc9 100644
--- a/libavcodec/qsvenc_jpeg.c
+++ b/libavcodec/qsvenc_jpeg.c
@@ -68,6 +68,7 @@  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 bbeac53ea4..22f1ff7c0d 100644
--- a/libavcodec/qsvenc_mpeg2.c
+++ b/libavcodec/qsvenc_mpeg2.c
@@ -76,6 +76,7 @@  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 b7a596b4ce..d0340ef94b 100644
--- a/libavcodec/qsvenc_vp9.c
+++ b/libavcodec/qsvenc_vp9.c
@@ -87,6 +87,7 @@  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 af14eee6f3..21c1829fc7 100644
--- a/libavcodec/rasc.c
+++ b/libavcodec/rasc.c
@@ -793,6 +793,7 @@  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 67a9a04060..66b7d00bd8 100644
--- a/libavcodec/remove_extradata_bsf.c
+++ b/libavcodec/remove_extradata_bsf.c
@@ -240,6 +240,7 @@  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 0d02d1c101..0933abf4f9 100644
--- a/libavcodec/roqvideoenc.c
+++ b/libavcodec/roqvideoenc.c
@@ -1110,6 +1110,7 @@  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 b13a3d8fe6..d84555d6c6 100644
--- a/libavcodec/rpzaenc.c
+++ b/libavcodec/rpzaenc.c
@@ -864,6 +864,7 @@  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 fc93c6ad05..f1b41608f3 100644
--- a/libavcodec/s302m.c
+++ b/libavcodec/s302m.c
@@ -221,6 +221,7 @@  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 614a6fffa8..6e1dd88c72 100644
--- a/libavcodec/sbcenc.c
+++ b/libavcodec/sbcenc.c
@@ -339,6 +339,7 @@  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 31f4d7afec..9c27b24a39 100644
--- a/libavcodec/setts_bsf.c
+++ b/libavcodec/setts_bsf.c
@@ -262,6 +262,7 @@  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 50c6555a02..5bbb72c03a 100644
--- a/libavcodec/sgienc.c
+++ b/libavcodec/sgienc.c
@@ -265,6 +265,7 @@  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 e4fd95390f..c215215346 100644
--- a/libavcodec/snowenc.c
+++ b/libavcodec/snowenc.c
@@ -2120,6 +2120,7 @@  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 0c09cbd907..b2d57f7235 100644
--- a/libavcodec/sunrastenc.c
+++ b/libavcodec/sunrastenc.c
@@ -203,6 +203,7 @@  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 6e7ea12aa7..2e07af3688 100644
--- a/libavcodec/svq1enc.c
+++ b/libavcodec/svq1enc.c
@@ -740,6 +740,7 @@  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 cf5da1fc09..d9c500b97d 100644
--- a/libavcodec/targaenc.c
+++ b/libavcodec/targaenc.c
@@ -197,6 +197,7 @@  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 852f806e45..b9aebff002 100644
--- a/libavcodec/textdec.c
+++ b/libavcodec/textdec.c
@@ -74,6 +74,7 @@  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 3092e319d3..adb49e4525 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -2454,6 +2454,7 @@  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 a83657a219..06d7dcc99d 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -564,6 +564,7 @@  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 7ea9b607a9..7763ed7ffc 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -420,6 +420,7 @@  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 e9c28e5704..1fcb6854f2 100644
--- a/libavcodec/utvideoenc.c
+++ b/libavcodec/utvideoenc.c
@@ -654,6 +654,7 @@  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 71712056db..d80fb4e7c6 100644
--- a/libavcodec/v210dec.c
+++ b/libavcodec/v210dec.c
@@ -227,6 +227,7 @@  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 8771c821eb..aa2d759e1e 100644
--- a/libavcodec/v4l2_m2m_dec.c
+++ b/libavcodec/v4l2_m2m_dec.c
@@ -233,6 +233,7 @@  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 2a90098eab..e08db5d5d3 100644
--- a/libavcodec/v4l2_m2m_enc.c
+++ b/libavcodec/v4l2_m2m_enc.c
@@ -414,6 +414,7 @@  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 a773a2cb0b..5a9ff0f798 100644
--- a/libavcodec/vaapi_encode_av1.c
+++ b/libavcodec/vaapi_encode_av1.c
@@ -922,6 +922,7 @@  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 74fbdacf74..57b5ea2bab 100644
--- a/libavcodec/vaapi_encode_h264.c
+++ b/libavcodec/vaapi_encode_h264.c
@@ -1368,6 +1368,7 @@  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 3ebb8afa9b..239ef2359a 100644
--- a/libavcodec/vaapi_encode_h265.c
+++ b/libavcodec/vaapi_encode_h265.c
@@ -1485,6 +1485,7 @@  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 e67e940c47..c17747e3a9 100644
--- a/libavcodec/vaapi_encode_mjpeg.c
+++ b/libavcodec/vaapi_encode_mjpeg.c
@@ -559,6 +559,7 @@  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 f9a3ecc8d1..d1904bf4f5 100644
--- a/libavcodec/vaapi_encode_mpeg2.c
+++ b/libavcodec/vaapi_encode_mpeg2.c
@@ -682,6 +682,7 @@  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 ddcf200085..8a557b967e 100644
--- a/libavcodec/vaapi_encode_vp8.c
+++ b/libavcodec/vaapi_encode_vp8.c
@@ -237,6 +237,7 @@  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 d00e73e945..c2a8dec71b 100644
--- a/libavcodec/vaapi_encode_vp9.c
+++ b/libavcodec/vaapi_encode_vp9.c
@@ -294,6 +294,7 @@  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 258bb975d4..7ce91863d7 100644
--- a/libavcodec/vbnenc.c
+++ b/libavcodec/vbnenc.c
@@ -143,6 +143,7 @@  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 87856a95fc..d978c67a3b 100644
--- a/libavcodec/vc2enc.c
+++ b/libavcodec/vc2enc.c
@@ -1207,6 +1207,7 @@  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 b2106a39f4..a7efd7ef3f 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -2907,6 +2907,7 @@  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,
 };
@@ -2942,6 +2943,7 @@  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,6 +2982,7 @@  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 5bd862b76d..d2c9e647ce 100644
--- a/libavcodec/vorbis_parser.c
+++ b/libavcodec/vorbis_parser.c
@@ -36,6 +36,7 @@ 
 
 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 024b2ad94a..40d1b21c67 100644
--- a/libavcodec/vp9_metadata_bsf.c
+++ b/libavcodec/vp9_metadata_bsf.c
@@ -126,6 +126,7 @@  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 e138c7f3a6..33a5dfcc89 100644
--- a/libavcodec/wavpackenc.c
+++ b/libavcodec/wavpackenc.c
@@ -2962,6 +2962,7 @@  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 6b4ddef1af..b518bbdac6 100644
--- a/libavdevice/alsa_dec.c
+++ b/libavdevice/alsa_dec.c
@@ -151,6 +151,7 @@  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 730005a8c6..4c7805065e 100644
--- a/libavdevice/alsa_enc.c
+++ b/libavdevice/alsa_enc.c
@@ -161,6 +161,7 @@  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 24e4a3948e..c981985f10 100644
--- a/libavdevice/android_camera.c
+++ b/libavdevice/android_camera.c
@@ -854,6 +854,7 @@  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 9380f77114..3bd707f236 100644
--- a/libavdevice/audiotoolbox.m
+++ b/libavdevice/audiotoolbox.m
@@ -293,6 +293,7 @@  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 6a57163eb7..a0ef87edff 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -1286,6 +1286,7 @@  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 29747c48bd..196637852f 100644
--- a/libavdevice/bktr.c
+++ b/libavdevice/bktr.c
@@ -343,6 +343,7 @@  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 c4040b77a0..6af1649137 100644
--- a/libavdevice/caca.c
+++ b/libavdevice/caca.c
@@ -215,6 +215,7 @@  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 b7a250dd50..2159702c96 100644
--- a/libavdevice/decklink_dec_c.c
+++ b/libavdevice/decklink_dec_c.c
@@ -105,6 +105,7 @@  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 6d747fc66f..25ffe77784 100644
--- a/libavdevice/decklink_enc_c.c
+++ b/libavdevice/decklink_enc_c.c
@@ -67,6 +67,7 @@  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 544d7eb6da..5946a72cc2 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -1918,6 +1918,7 @@  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 c7a51bc406..460a71d13f 100644
--- a/libavdevice/fbdev_dec.c
+++ b/libavdevice/fbdev_dec.c
@@ -226,6 +226,7 @@  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 d7a091f54b..7f3e8e5935 100644
--- a/libavdevice/fbdev_enc.c
+++ b/libavdevice/fbdev_enc.c
@@ -201,6 +201,7 @@  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 00499e47d7..b2858ecd89 100644
--- a/libavdevice/gdigrab.c
+++ b/libavdevice/gdigrab.c
@@ -670,6 +670,7 @@  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 a3b6ab6f32..7223ba2e64 100644
--- a/libavdevice/iec61883.c
+++ b/libavdevice/iec61883.c
@@ -496,6 +496,7 @@  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 94f0f15e06..db056d824f 100644
--- a/libavdevice/jack.c
+++ b/libavdevice/jack.c
@@ -335,6 +335,7 @@  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 ae0dbafbfc..ba9b306c65 100644
--- a/libavdevice/kmsgrab.c
+++ b/libavdevice/kmsgrab.c
@@ -702,6 +702,7 @@  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 20f15c9ceb..2bfd0b81c7 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -487,6 +487,7 @@  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 5f82bdd80a..28c339564f 100644
--- a/libavdevice/libcdio.c
+++ b/libavdevice/libcdio.c
@@ -174,6 +174,7 @@  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 9d5668a836..e98b88c1a2 100644
--- a/libavdevice/libdc1394.c
+++ b/libavdevice/libdc1394.c
@@ -87,6 +87,7 @@  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 2c0f333291..91a40ae020 100644
--- a/libavdevice/openal-dec.c
+++ b/libavdevice/openal-dec.c
@@ -242,6 +242,7 @@  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 3d54198c93..b2ac6eb16a 100644
--- a/libavdevice/opengl_enc.c
+++ b/libavdevice/opengl_enc.c
@@ -1291,6 +1291,7 @@  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 5907e2c6c7..2cdc4324e8 100644
--- a/libavdevice/oss_dec.c
+++ b/libavdevice/oss_dec.c
@@ -124,6 +124,7 @@  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 8da069c0d5..c125e6c0e9 100644
--- a/libavdevice/oss_enc.c
+++ b/libavdevice/oss_enc.c
@@ -90,6 +90,7 @@  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 b9d4662250..2545462939 100644
--- a/libavdevice/pulse_audio_dec.c
+++ b/libavdevice/pulse_audio_dec.c
@@ -387,6 +387,7 @@  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 9aff25b6dc..f051df3e72 100644
--- a/libavdevice/pulse_audio_enc.c
+++ b/libavdevice/pulse_audio_enc.c
@@ -783,6 +783,7 @@  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 0091a23e19..342a253dc0 100644
--- a/libavdevice/sdl2.c
+++ b/libavdevice/sdl2.c
@@ -350,6 +350,7 @@  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 fdc30a9619..6059830367 100644
--- a/libavdevice/sndio_dec.c
+++ b/libavdevice/sndio_dec.c
@@ -103,6 +103,7 @@  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 fa45ea9b4e..578e287a41 100644
--- a/libavdevice/sndio_enc.c
+++ b/libavdevice/sndio_enc.c
@@ -82,6 +82,7 @@  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 b7c223a56f..5e85d1a2b3 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -1128,6 +1128,7 @@  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 68e303fabf..8e8f911996 100644
--- a/libavdevice/v4l2enc.c
+++ b/libavdevice/v4l2enc.c
@@ -107,6 +107,7 @@  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 7bb3b59830..86a40b4af4 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -476,6 +476,7 @@  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 03f5b4e4d8..64a68ba497 100644
--- a/libavdevice/xcbgrab.c
+++ b/libavdevice/xcbgrab.c
@@ -102,6 +102,7 @@  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 5ad77e2adc..cba933ef17 100644
--- a/libavdevice/xv.c
+++ b/libavdevice/xv.c
@@ -371,6 +371,7 @@  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 d741a174a0..f4bcc45616 100644
--- a/libavfilter/af_aresample.c
+++ b/libavfilter/af_aresample.c
@@ -351,6 +351,7 @@  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 96aa137e6d..e4f59f56e2 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -61,6 +61,7 @@  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 9e12758138..233f50a0eb 100644
--- a/libavfilter/framesync.h
+++ b/libavfilter/framesync.h
@@ -320,6 +320,7 @@  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 dcc7fb1df4..a6cdf9994c 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -317,6 +317,7 @@  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 cf1edf222e..1ee20d66cf 100644
--- a/libavfilter/stack_internal.c
+++ b/libavfilter/stack_internal.c
@@ -336,6 +336,7 @@  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 57a7364649..ba008b517a 100644
--- a/libavfilter/vf_bilateral_cuda.c
+++ b/libavfilter/vf_bilateral_cuda.c
@@ -435,6 +435,7 @@  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 9ea7a67018..418f15f989 100644
--- a/libavfilter/vf_bwdif_cuda.c
+++ b/libavfilter/vf_bwdif_cuda.c
@@ -338,6 +338,7 @@  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 15af354e99..c51df9aa26 100644
--- a/libavfilter/vf_bwdif_vulkan.c
+++ b/libavfilter/vf_bwdif_vulkan.c
@@ -375,6 +375,7 @@  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 dbe1ce0f90..ac644caea7 100644
--- a/libavfilter/vf_chromakey_cuda.c
+++ b/libavfilter/vf_chromakey_cuda.c
@@ -454,6 +454,7 @@  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 2f23f91d7f..09fd4dd778 100644
--- a/libavfilter/vf_colorspace_cuda.c
+++ b/libavfilter/vf_colorspace_cuda.c
@@ -392,6 +392,7 @@  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 83662729be..f085a7c10a 100644
--- a/libavfilter/vf_deinterlace_vaapi.c
+++ b/libavfilter/vf_deinterlace_vaapi.c
@@ -392,6 +392,7 @@  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 d43f03e26b..5ef23cb5d4 100644
--- a/libavfilter/vf_hwdownload.c
+++ b/libavfilter/vf_hwdownload.c
@@ -167,6 +167,7 @@  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 7e5a6fead4..44dc1f2bf8 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -1040,6 +1040,7 @@  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 2afb165de3..4cd21bbf25 100644
--- a/libavfilter/vf_scale_cuda.c
+++ b/libavfilter/vf_scale_cuda.c
@@ -603,6 +603,7 @@  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 f9b6addd0c..3cfead82bf 100644
--- a/libavfilter/vf_scale_npp.c
+++ b/libavfilter/vf_scale_npp.c
@@ -1013,6 +1013,7 @@  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 da4d2b1b30..0a2c5c458b 100644
--- a/libavfilter/vf_sharpen_npp.c
+++ b/libavfilter/vf_sharpen_npp.c
@@ -235,6 +235,7 @@  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 eca429e03a..bb74b20e0e 100644
--- a/libavfilter/vf_spp.c
+++ b/libavfilter/vf_spp.c
@@ -75,6 +75,7 @@  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 6e22b1fc92..a7a779cc25 100644
--- a/libavfilter/vf_transpose_npp.c
+++ b/libavfilter/vf_transpose_npp.c
@@ -440,6 +440,7 @@  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 fdf9910186..5356103e00 100644
--- a/libavfilter/vf_vpp_qsv.c
+++ b/libavfilter/vf_vpp_qsv.c
@@ -824,6 +824,7 @@  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 863a1d6ffb..a5a856bf5f 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -326,6 +326,7 @@  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 44a284788d..d777757e65 100644
--- a/libavfilter/vf_yadif_cuda.c
+++ b/libavfilter/vf_yadif_cuda.c
@@ -338,6 +338,7 @@  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 47590dd733..56fbdbdb87 100644
--- a/libavfilter/vidstabutils.c
+++ b/libavfilter/vidstabutils.c
@@ -61,6 +61,7 @@  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 840afe0f1f..e7b048b1f9 100644
--- a/libavformat/aadec.c
+++ b/libavformat/aadec.c
@@ -366,6 +366,7 @@  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 df768892dc..aefbfc2684 100644
--- a/libavformat/ac4enc.c
+++ b/libavformat/ac4enc.c
@@ -82,6 +82,7 @@  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 5ebbc641d2..c5765cc92e 100644
--- a/libavformat/adtsenc.c
+++ b/libavformat/adtsenc.c
@@ -228,6 +228,7 @@  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 12c871dd93..11a5b18d57 100644
--- a/libavformat/aiffenc.c
+++ b/libavformat/aiffenc.c
@@ -280,6 +280,7 @@  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 bbba769f7b..8c6066a59c 100644
--- a/libavformat/alp.c
+++ b/libavformat/alp.c
@@ -286,6 +286,7 @@  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 835a94e9e1..8f5f37a2b1 100644
--- a/libavformat/apngdec.c
+++ b/libavformat/apngdec.c
@@ -415,6 +415,7 @@  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 be08c033ed..a0af916f14 100644
--- a/libavformat/apngenc.c
+++ b/libavformat/apngenc.c
@@ -302,6 +302,7 @@  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 e1043564af..0637a8afde 100644
--- a/libavformat/aptxdec.c
+++ b/libavformat/aptxdec.c
@@ -95,6 +95,7 @@  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 bb977150b8..6c14b23862 100644
--- a/libavformat/aqtitledec.c
+++ b/libavformat/aqtitledec.c
@@ -130,6 +130,7 @@  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 61951c21d9..5f38b68b6a 100644
--- a/libavformat/argo_asf.c
+++ b/libavformat/argo_asf.c
@@ -466,6 +466,7 @@  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 153f746b3d..2c74200b7d 100644
--- a/libavformat/argo_cvg.c
+++ b/libavformat/argo_cvg.c
@@ -396,6 +396,7 @@  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 1c97d8b5b9..a579c3e894 100644
--- a/libavformat/asfdec_f.c
+++ b/libavformat/asfdec_f.c
@@ -125,6 +125,7 @@  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 4cb59317a1..2f2d9b1bab 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -1121,6 +1121,7 @@  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 60112b88bc..62ea0745a4 100644
--- a/libavformat/assenc.c
+++ b/libavformat/assenc.c
@@ -223,6 +223,7 @@  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 250a54b573..c6b02e3848 100644
--- a/libavformat/astenc.c
+++ b/libavformat/astenc.c
@@ -192,6 +192,7 @@  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 283f50cf4b..e096b0bc6f 100644
--- a/libavformat/async.c
+++ b/libavformat/async.c
@@ -484,6 +484,7 @@  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,
 };
@@ -585,6 +586,7 @@  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 8b74fa1af8..8a06445958 100644
--- a/libavformat/av1dec.c
+++ b/libavformat/av1dec.c
@@ -116,6 +116,7 @@  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 744ae64ff3..00bd7a98a9 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -97,6 +97,7 @@  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 b44ddfe0aa..a61e5c3109 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -999,6 +999,7 @@  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 0265035087..5a329ce465 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -66,6 +66,7 @@  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 ba8ffde426..027e8c63f6 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -1192,6 +1192,7 @@  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 860e2bf784..b6f14a03e5 100644
--- a/libavformat/bintext.c
+++ b/libavformat/bintext.c
@@ -382,6 +382,7 @@  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 34ea05d603..1845551c34 100644
--- a/libavformat/bluray.c
+++ b/libavformat/bluray.c
@@ -51,6 +51,7 @@  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 aba6230057..115c2c2490 100644
--- a/libavformat/cache.c
+++ b/libavformat/cache.c
@@ -327,6 +327,7 @@  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 a7f5288faa..065148360e 100644
--- a/libavformat/cdxl.c
+++ b/libavformat/cdxl.c
@@ -252,6 +252,7 @@  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 4b09b6f14f..9e5fd780c1 100644
--- a/libavformat/chromaprint.c
+++ b/libavformat/chromaprint.c
@@ -172,6 +172,7 @@  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 1d6ef2a14a..f0f7b89253 100644
--- a/libavformat/codec2.c
+++ b/libavformat/codec2.c
@@ -279,6 +279,7 @@  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,
@@ -286,6 +287,7 @@  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 5a7a063ef7..ffa8ade25b 100644
--- a/libavformat/concatdec.c
+++ b/libavformat/concatdec.c
@@ -930,6 +930,7 @@  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 d0eb7fbe5d..75b00020bc 100644
--- a/libavformat/crypto.c
+++ b/libavformat/crypto.c
@@ -73,6 +73,7 @@  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 a60abe05ce..1215407f3c 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -2350,6 +2350,7 @@  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 5ca1661119..2f5394c308 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -2411,6 +2411,7 @@  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 a92649ddfe..b92b00f13a 100644
--- a/libavformat/dfpwmdec.c
+++ b/libavformat/dfpwmdec.c
@@ -81,6 +81,7 @@  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 1d0c119c73..e7f574aede 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -778,6 +778,7 @@  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 2dad6c2f7a..5ace604db6 100644
--- a/libavformat/evcdec.c
+++ b/libavformat/evcdec.c
@@ -51,6 +51,7 @@  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 9d9796fd32..8fb4975a5c 100644
--- a/libavformat/fifo.c
+++ b/libavformat/fifo.c
@@ -706,6 +706,7 @@  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 d4f6800c5d..3861c4aee4 100644
--- a/libavformat/fifo_test.c
+++ b/libavformat/fifo_test.c
@@ -133,6 +133,7 @@  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 712382c42d..64df7ff6fb 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -117,18 +117,21 @@  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 e6a7dadbe5..e0f502e4e3 100644
--- a/libavformat/fitsdec.c
+++ b/libavformat/fitsdec.c
@@ -214,6 +214,7 @@  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 e4fd87930e..a8beec7750 100644
--- a/libavformat/flacenc.c
+++ b/libavformat/flacenc.c
@@ -409,6 +409,7 @@  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 639a9f84d9..e25b5bd163 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -1407,6 +1407,7 @@  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 289489ebb1..874560fac1 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -1105,6 +1105,7 @@  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 23dd5da3f7..f9b069a59e 100644
--- a/libavformat/ftp.c
+++ b/libavformat/ftp.c
@@ -92,6 +92,7 @@  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 016ab70dda..97580a74f8 100644
--- a/libavformat/g726.c
+++ b/libavformat/g726.c
@@ -69,6 +69,7 @@  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 e6ecb5297a..9c92ea4fcf 100644
--- a/libavformat/g729dec.c
+++ b/libavformat/g729dec.c
@@ -88,6 +88,7 @@  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 23ffcef0b5..568867cc5d 100644
--- a/libavformat/gif.c
+++ b/libavformat/gif.c
@@ -200,6 +200,7 @@  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 d22f70e4c9..32286adafe 100644
--- a/libavformat/gifdec.c
+++ b/libavformat/gifdec.c
@@ -272,6 +272,7 @@  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 2f1cc159f3..7150daa510 100644
--- a/libavformat/gsmdec.c
+++ b/libavformat/gsmdec.c
@@ -97,6 +97,7 @@  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 a7ed15dfbd..17ee2f7e9f 100644
--- a/libavformat/hashenc.c
+++ b/libavformat/hashenc.c
@@ -52,6 +52,7 @@  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,
 };
@@ -191,6 +192,7 @@  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,
 };
@@ -318,6 +320,7 @@  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,
 };
@@ -341,6 +344,7 @@  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 3d36565fc1..e796512a62 100644
--- a/libavformat/hca.c
+++ b/libavformat/hca.c
@@ -143,6 +143,7 @@  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 8386d28c79..7062441b70 100644
--- a/libavformat/hdsenc.c
+++ b/libavformat/hdsenc.c
@@ -563,6 +563,7 @@  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 a69430a457..61e2d67588 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -2589,6 +2589,7 @@  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 a0c2408f12..55123d2297 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -3186,6 +3186,7 @@  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 8113043ffb..c0fe7c36d9 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1986,6 +1986,7 @@  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 f883f38777..b06c53cabd 100644
--- a/libavformat/icecast.c
+++ b/libavformat/icecast.c
@@ -207,6 +207,7 @@  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 4525ed5909..818b5e590b 100644
--- a/libavformat/imfdec.c
+++ b/libavformat/imfdec.c
@@ -1014,6 +1014,7 @@  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 cc5a4f3b1f..d0aac83924 100644
--- a/libavformat/img2_alias_pix.c
+++ b/libavformat/img2_alias_pix.c
@@ -56,6 +56,7 @@  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 50e65dda55..9d9a7c0819 100644
--- a/libavformat/img2_brender_pix.c
+++ b/libavformat/img2_brender_pix.c
@@ -40,6 +40,7 @@  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 a719d5ff2a..2761cb37a4 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -634,6 +634,7 @@  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,
 };
@@ -657,6 +658,7 @@  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 acfb404c6d..526a11e5ee 100644
--- a/libavformat/img2enc.c
+++ b/libavformat/img2enc.c
@@ -266,6 +266,7 @@  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 879a33d818..9c0d461099 100644
--- a/libavformat/ipfsgateway.c
+++ b/libavformat/ipfsgateway.c
@@ -331,6 +331,7 @@  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 77da397c29..8eec632c54 100644
--- a/libavformat/latmenc.c
+++ b/libavformat/latmenc.c
@@ -52,6 +52,7 @@  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 24ad3e87f0..c3b9c484ea 100644
--- a/libavformat/libamqp.c
+++ b/libavformat/libamqp.c
@@ -306,6 +306,7 @@  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 4d04537339..695155c9ac 100644
--- a/libavformat/libgme.c
+++ b/libavformat/libgme.c
@@ -188,6 +188,7 @@  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 f0c5dd9f18..0cae13bd2e 100644
--- a/libavformat/libmodplug.c
+++ b/libavformat/libmodplug.c
@@ -375,6 +375,7 @@  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 8f46ef2415..3ca59f506f 100644
--- a/libavformat/libopenmpt.c
+++ b/libavformat/libopenmpt.c
@@ -273,6 +273,7 @@  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 e43dad7388..5f27cacd44 100644
--- a/libavformat/librist.c
+++ b/libavformat/librist.c
@@ -252,6 +252,7 @@  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 800d2711aa..b7e9fc81cf 100644
--- a/libavformat/librtmp.c
+++ b/libavformat/librtmp.c
@@ -284,6 +284,7 @@  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 ae51956a6f..f81fff2dfc 100644
--- a/libavformat/libsmbclient.c
+++ b/libavformat/libsmbclient.c
@@ -358,6 +358,7 @@  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 1cc7ec9f86..cd8f5b1e7d 100644
--- a/libavformat/libsrt.c
+++ b/libavformat/libsrt.c
@@ -727,6 +727,7 @@  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 6e434bf7cc..127faaabd3 100644
--- a/libavformat/libssh.c
+++ b/libavformat/libssh.c
@@ -481,6 +481,7 @@  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 b4b0856121..04c72ac601 100644
--- a/libavformat/libzmq.c
+++ b/libavformat/libzmq.c
@@ -187,6 +187,7 @@  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 f00a854fb0..8f000f86be 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -4772,6 +4772,7 @@  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 bceefdc9b0..1457a6890c 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -3516,6 +3516,7 @@  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 2d424dff4e..e536d12b85 100644
--- a/libavformat/microdvddec.c
+++ b/libavformat/microdvddec.c
@@ -193,6 +193,7 @@  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 7e3b0c4a55..5cb907e120 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -9546,6 +9546,7 @@  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 c95410f5c1..8a27afbc57 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -125,6 +125,7 @@  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,
 };
@@ -7923,6 +7924,7 @@  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 466338f4bf..05c13228bc 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -604,6 +604,7 @@  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 cc69a48238..cb250a46ca 100644
--- a/libavformat/mp3enc.c
+++ b/libavformat/mp3enc.c
@@ -515,6 +515,7 @@  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 0505aed57e..781c3162d6 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -1040,6 +1040,7 @@  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 632ed3eae6..12d9fb33ec 100644
--- a/libavformat/mpegenc.c
+++ b/libavformat/mpegenc.c
@@ -1298,6 +1298,7 @@  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 a3173cf38d..c7fd1f5d1f 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -209,6 +209,7 @@  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,
 };
@@ -227,6 +228,7 @@  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 6bdd09d8a5..84edd418f0 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -2343,6 +2343,7 @@  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 07b1da84a1..81ace8e9ee 100644
--- a/libavformat/mpjpeg.c
+++ b/libavformat/mpjpeg.c
@@ -57,6 +57,7 @@  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 ccec42c781..236aed716a 100644
--- a/libavformat/mpjpegdec.c
+++ b/libavformat/mpjpegdec.c
@@ -363,6 +363,7 @@  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 417848b3ea..e42975e7fd 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -4308,6 +4308,7 @@  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 86fe86ee3c..685c11b3a5 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -3574,6 +3574,7 @@  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,
 };
@@ -3589,6 +3590,7 @@  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,
 };
@@ -3604,6 +3606,7 @@  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 4a96dec593..a5198c7ca9 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -1248,6 +1248,7 @@  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 38ceb17495..69a66f586d 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -97,6 +97,7 @@  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 e79ae221d9..75ec86ce05 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -244,6 +244,7 @@  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,
 };
@@ -383,6 +384,7 @@  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 abaa435b44..11ba0b5c0c 100644
--- a/libavformat/pcmdec.c
+++ b/libavformat/pcmdec.c
@@ -124,6 +124,7 @@  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,
 };
@@ -190,6 +191,7 @@  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 98f25df453..59faa824bb 100644
--- a/libavformat/prompeg.c
+++ b/libavformat/prompeg.c
@@ -129,6 +129,7 @@  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 0070b0b412..1dd7fafcf0 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -126,6 +126,7 @@  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,
 };
@@ -138,6 +139,7 @@  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 2b81dad86e..514e4e044f 100644
--- a/libavformat/rawvideodec.c
+++ b/libavformat/rawvideodec.c
@@ -144,6 +144,7 @@  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,
 };
@@ -162,6 +163,7 @@  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,
 };
@@ -182,6 +184,7 @@  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 b7b610f4e7..a835ab263f 100644
--- a/libavformat/rtmpcrypt.c
+++ b/libavformat/rtmpcrypt.c
@@ -320,6 +320,7 @@  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 1f88243b00..c920c19ab5 100644
--- a/libavformat/rtmphttp.c
+++ b/libavformat/rtmphttp.c
@@ -268,6 +268,7 @@  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 5f6dfcb2fe..98718bc6da 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -3161,6 +3161,7 @@  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 472cb97e00..a8d296a154 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -40,6 +40,7 @@  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 c00461c8eb..0d6403a048 100644
--- a/libavformat/rtpenc_mpegts.c
+++ b/libavformat/rtpenc_mpegts.c
@@ -183,6 +183,7 @@  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 5b34271b75..cac361047a 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -86,6 +86,7 @@  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 61e24a5c7a..c7d9b48684 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -2479,6 +2479,7 @@  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,
 };
@@ -2637,6 +2638,7 @@  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 d6a223cbc6..b54ce4e597 100644
--- a/libavformat/rtspdec.c
+++ b/libavformat/rtspdec.c
@@ -987,6 +987,7 @@  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 96031dcdba..3d444ccbfd 100644
--- a/libavformat/rtspenc.c
+++ b/libavformat/rtspenc.c
@@ -38,6 +38,7 @@ 
 
 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 7eaebcc652..b2662ea418 100644
--- a/libavformat/sbgdec.c
+++ b/libavformat/sbgdec.c
@@ -1524,6 +1524,7 @@  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 703937ce66..9d9e90097e 100644
--- a/libavformat/sctp.c
+++ b/libavformat/sctp.c
@@ -170,6 +170,7 @@  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 5c97114037..2a82f39f31 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -1084,6 +1084,7 @@  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 ee947644e3..639c899249 100644
--- a/libavformat/serdec.c
+++ b/libavformat/serdec.c
@@ -127,6 +127,7 @@  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 f556c14496..0379e9a079 100644
--- a/libavformat/smoothstreamingenc.c
+++ b/libavformat/smoothstreamingenc.c
@@ -635,6 +635,7 @@  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 6bb187a416..ca38674626 100644
--- a/libavformat/spdifenc.c
+++ b/libavformat/spdifenc.c
@@ -103,6 +103,7 @@  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 e2984bc3ee..61669e05ad 100644
--- a/libavformat/srtpproto.c
+++ b/libavformat/srtpproto.c
@@ -47,6 +47,7 @@  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 4e2872d63a..633a9e3c62 100644
--- a/libavformat/subfile.c
+++ b/libavformat/subfile.c
@@ -44,6 +44,7 @@  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 87a074ec18..db41394a84 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -69,6 +69,7 @@  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 eea871f0ec..a8aa9d9cf9 100644
--- a/libavformat/tedcaptionsdec.c
+++ b/libavformat/tedcaptionsdec.c
@@ -42,6 +42,7 @@  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 8f161d51ee..cfa8346bc9 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -74,6 +74,7 @@  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 8907819d0f..2ab38a199b 100644
--- a/libavformat/tls_gnutls.c
+++ b/libavformat/tls_gnutls.c
@@ -294,6 +294,7 @@  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 68a6572828..22858d4867 100644
--- a/libavformat/tls_libtls.c
+++ b/libavformat/tls_libtls.c
@@ -198,6 +198,7 @@  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 7434f0826d..8503523b6d 100644
--- a/libavformat/tls_mbedtls.c
+++ b/libavformat/tls_mbedtls.c
@@ -350,6 +350,7 @@  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 112d35f91f..8bf766c01f 100644
--- a/libavformat/tls_openssl.c
+++ b/libavformat/tls_openssl.c
@@ -380,6 +380,7 @@  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 32c7607b8a..d4959f75fa 100644
--- a/libavformat/tls_schannel.c
+++ b/libavformat/tls_schannel.c
@@ -602,6 +602,7 @@  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 7b8d03130d..f6a1a5e7b6 100644
--- a/libavformat/tls_securetransport.c
+++ b/libavformat/tls_securetransport.c
@@ -409,6 +409,7 @@  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 62f570636e..fbea3196fa 100644
--- a/libavformat/tty.c
+++ b/libavformat/tty.c
@@ -173,6 +173,7 @@  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 ecac0ef40b..d9514f5026 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -144,12 +144,14 @@  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 31a01efeb5..e668744580 100644
--- a/libavformat/unix.c
+++ b/libavformat/unix.c
@@ -55,6 +55,7 @@  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 b8778a7398..b79ecfcf1b 100644
--- a/libavformat/vapoursynth.c
+++ b/libavformat/vapoursynth.c
@@ -475,6 +475,7 @@  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 7066609365..0c6629b157 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -824,6 +824,7 @@  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,
 };
@@ -986,6 +987,7 @@  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 34f4640e91..82acb9ef0f 100644
--- a/libavformat/wavenc.c
+++ b/libavformat/wavenc.c
@@ -503,6 +503,7 @@  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 0ce0c2b630..494a83f507 100644
--- a/libavformat/webm_chunk.c
+++ b/libavformat/webm_chunk.c
@@ -287,6 +287,7 @@  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 a8c8472b70..31ea3c6e8c 100644
--- a/libavformat/webmdashenc.c
+++ b/libavformat/webmdashenc.c
@@ -537,6 +537,7 @@  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 9d1bd917f5..ea7a321975 100644
--- a/libavformat/webpenc.c
+++ b/libavformat/webpenc.c
@@ -220,6 +220,7 @@  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 d6ba04db44..0b2fc77168 100644
--- a/libavformat/webvttdec.c
+++ b/libavformat/webvttdec.c
@@ -205,6 +205,7 @@  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 374b53d3bb..48d195168c 100644
--- a/libavutil/cpu.c
+++ b/libavutil/cpu.c
@@ -197,6 +197,7 @@  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 349015d4fa..bc4a00d7d2 100644
--- a/libavutil/eval.c
+++ b/libavutil/eval.c
@@ -61,6 +61,7 @@  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 4855b91963..cc17885bcc 100644
--- a/libavutil/file.c
+++ b/libavutil/file.c
@@ -45,6 +45,7 @@  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 5f6f17a881..9aa4e4ac61 100644
--- a/libavutil/file_open.c
+++ b/libavutil/file_open.c
@@ -101,6 +101,7 @@  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 430cc9ffef..e23bad230f 100644
--- a/libavutil/hwcontext.c
+++ b/libavutil/hwcontext.c
@@ -120,6 +120,7 @@  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,
 };
 
@@ -221,6 +222,7 @@  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 e648f6df2b..62b6051049 100644
--- a/libavutil/iamf.c
+++ b/libavutil/iamf.c
@@ -75,6 +75,7 @@  static const AVOption mix_gain_options[] = {
 
 static const AVClass mix_gain_class = {
     .class_name     = "AVIAMFSubmixElement",
+    .item_name      = av_default_item_name,
     .version        = LIBAVUTIL_VERSION_INT,
     .option         = mix_gain_options,
 };
@@ -89,6 +90,7 @@  static const AVOption demixing_info_options[] = {
 
 static const AVClass demixing_info_class = {
     .class_name     = "AVIAMFDemixingInfo",
+    .item_name      = av_default_item_name,
     .version        = LIBAVUTIL_VERSION_INT,
     .option         = demixing_info_options,
 };
@@ -102,6 +104,7 @@  static const AVOption recon_gain_options[] = {
 
 static const AVClass recon_gain_class = {
     .class_name     = "AVIAMFReconGain",
+    .item_name      = av_default_item_name,
     .version        = LIBAVUTIL_VERSION_INT,
     .option         = recon_gain_options,
 };
@@ -142,6 +145,7 @@  static const AVClass *param_definition_child_iterate(void **opaque)
 
 static const AVClass param_definition_class = {
     .class_name          = "AVIAMFParamDefinition",
+    .item_name           = av_default_item_name,
     .version             = LIBAVUTIL_VERSION_INT,
     .option              = param_definition_options,
     .child_class_iterate = param_definition_child_iterate,
@@ -270,6 +274,7 @@  static const AVOption layer_options[] = {
 
 static const AVClass layer_class = {
     .class_name     = "AVIAMFLayer",
+    .item_name      = av_default_item_name,
     .version        = LIBAVUTIL_VERSION_INT,
     .option         = layer_options,
 };
@@ -303,6 +308,7 @@  static const AVClass *audio_element_child_iterate(void **opaque)
 
 static const AVClass audio_element_class = {
     .class_name          = "AVIAMFAudioElement",
+    .item_name           = av_default_item_name,
     .version             = LIBAVUTIL_VERSION_INT,
     .option              = audio_element_options,
     .child_class_iterate = audio_element_child_iterate,
@@ -389,6 +395,7 @@  static const AVClass *submix_element_child_iterate(void **opaque)
 
 static const AVClass element_class = {
     .class_name          = "AVIAMFSubmixElement",
+    .item_name           = av_default_item_name,
     .version             = LIBAVUTIL_VERSION_INT,
     .option              = submix_element_options,
     .child_next          = submix_element_child_next,
@@ -418,6 +425,7 @@  static const AVOption submix_layout_options[] = {
 
 static const AVClass layout_class = {
     .class_name     = "AVIAMFSubmixLayout",
+    .item_name      = av_default_item_name,
     .version        = LIBAVUTIL_VERSION_INT,
     .option         = submix_layout_options,
 };
@@ -466,6 +474,7 @@  static const AVClass *submix_presentation_child_iterate(void **opaque)
 
 static const AVClass submix_class = {
     .class_name          = "AVIAMFSubmix",
+    .item_name           = av_default_item_name,
     .version             = LIBAVUTIL_VERSION_INT,
     .option              = submix_presentation_options,
     .child_next          = submix_presentation_child_next,
@@ -497,6 +506,7 @@  static const AVClass *mix_presentation_child_iterate(void **opaque)
 
 static const AVClass mix_presentation_class = {
     .class_name          = "AVIAMFMixPresentation",
+    .item_name           = av_default_item_name,
     .version             = LIBAVUTIL_VERSION_INT,
     .option              = mix_presentation_options,
     .child_class_iterate = mix_presentation_child_iterate,
diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c
index 406e7868b2..1e15f7c920 100644
--- a/libavutil/imgutils.c
+++ b/libavutil/imgutils.c
@@ -279,6 +279,7 @@  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 b0d46650d9..461b5d3b6b 100644
--- a/libavutil/opt.h
+++ b/libavutil/opt.h
@@ -77,6 +77,7 @@ 
  *
  * static const AVClass test_class = {
  *     .class_name = "test class",
+ *     .item_name  = av_default_item_name,
  *     .option     = test_options,
  *     .version    = LIBAVUTIL_VERSION_INT,
  * };
@@ -130,6 +131,7 @@ 
  *      };
  *      static const AVClass child_class = {
  *          .class_name = "child class",
+ *          .item_name  = av_default_item_name,
  *          .option     = child_opts,
  *          .version    = LIBAVUTIL_VERSION_INT,
  *      };