summaryrefslogtreecommitdiff
path: root/libavformat/options.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-04-18 12:41:52 -0300
committerJames Almer <jamrial@gmail.com>2021-04-27 11:48:04 -0300
commit0bf3a7361d17d596a5044882098f56817db0e103 (patch)
tree8d4818cc5a5cb02df18b91ffaea567b7e3099666 /libavformat/options.c
parent3749eede66c3774799766b1f246afae8a6ffc9bb (diff)
avutil: remove deprecated AVClass.child_class_next
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/options.c')
-rw-r--r--libavformat/options.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/libavformat/options.c b/libavformat/options.c
index 632d450c90..dccb6faa73 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -54,41 +54,6 @@ static void *format_child_next(void *obj, void *prev)
return NULL;
}
-#if FF_API_CHILD_CLASS_NEXT
-static const AVClass *format_child_class_next(const AVClass *prev)
-{
- const AVInputFormat *ifmt = NULL;
- const AVOutputFormat *ofmt = NULL;
- void *ifmt_iter = NULL, *ofmt_iter = NULL;
-
- if (!prev)
- return &ff_avio_class;
-
- while ((ifmt = av_demuxer_iterate(&ifmt_iter)))
- if (ifmt->priv_class == prev)
- break;
-
- if (!ifmt) {
- ifmt_iter = NULL;
- while ((ofmt = av_muxer_iterate(&ofmt_iter)))
- if (ofmt->priv_class == prev)
- break;
- }
- if (!ofmt) {
- ofmt_iter = NULL;
- while ((ifmt = av_demuxer_iterate(&ifmt_iter)))
- if (ifmt->priv_class)
- return ifmt->priv_class;
- }
-
- while ((ofmt = av_muxer_iterate(&ofmt_iter)))
- if (ofmt->priv_class)
- return ofmt->priv_class;
-
- return NULL;
-}
-#endif
-
enum {
CHILD_CLASS_ITER_AVIO = 0,
CHILD_CLASS_ITER_MUX,
@@ -158,9 +123,6 @@ static const AVClass av_format_context_class = {
.option = avformat_options,
.version = LIBAVUTIL_VERSION_INT,
.child_next = format_child_next,
-#if FF_API_CHILD_CLASS_NEXT
- .child_class_next = format_child_class_next,
-#endif
.child_class_iterate = format_child_class_iterate,
.category = AV_CLASS_CATEGORY_MUXER,
.get_category = get_category,