diff options
author | Niklas Haas <git@haasn.dev> | 2024-04-05 20:06:45 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-04-09 14:36:41 +0200 |
commit | fe7029af5e72a58d3a82cc25457577046ef9e3b1 (patch) | |
tree | 3a702b2426b8452d57f4ae809538dbaa8575247a | |
parent | 4d7bef2a904c0fbcaf92b1f97a6166e3d141786d (diff) |
avcodec/codec_internal: nuke init_static_data()
All hail get_supported_config()
-rw-r--r-- | libavcodec/allcodecs.c | 7 | ||||
-rw-r--r-- | libavcodec/codec_internal.h | 8 |
2 files changed, 1 insertions, 14 deletions
diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index a9f1797930..1f22e06e71 100644 --- a/libavcodec/allcodecs.c +++ b/libavcodec/allcodecs.c @@ -916,13 +916,8 @@ static AVOnce av_codec_static_init = AV_ONCE_INIT; static void av_codec_init_static(void) { for (int i = 0; codec_list[i]; i++) { - const FFCodec *codec = codec_list[i]; - if (codec->init_static_data) { - codec->init_static_data((FFCodec*) codec); - continue; - } - /* Backward compatibility with deprecated public fields */ + const FFCodec *codec = codec_list[i]; if (!codec->get_supported_config) continue; diff --git a/libavcodec/codec_internal.h b/libavcodec/codec_internal.h index bac3e30ba2..d3033db337 100644 --- a/libavcodec/codec_internal.h +++ b/libavcodec/codec_internal.h @@ -174,14 +174,6 @@ typedef struct FFCodec { */ const FFCodecDefault *defaults; - /** - * Initialize codec static data, called from av_codec_iterate(). - * - * This is not intended for time consuming operations as it is - * run for every codec regardless of that codec being used. - */ - void (*init_static_data)(struct FFCodec *codec); - int (*init)(struct AVCodecContext *); union { |