Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-05-27 16:34:07 +0300
committerAnton Khirnov <anton@khirnov.net>2020-06-10 13:36:44 +0300
commitc7d8d8d8d91833737ec1b94c9345bcfba5935ee6 (patch)
tree359395a5409a0f477bdfb7f7e437340e55ae257d /libavfilter/vf_spp.c
parent6bfac4ee6f512f7cb44a49a0bc783533ba5c36e6 (diff)
vf_spp: switch to child_class_iterate()
Diffstat (limited to 'libavfilter/vf_spp.c')
-rw-r--r--libavfilter/vf_spp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavfilter/vf_spp.c b/libavfilter/vf_spp.c
index a83b1195c0..4bcc6429e0 100644
--- a/libavfilter/vf_spp.c
+++ b/libavfilter/vf_spp.c
@@ -44,10 +44,19 @@ enum mode {
NB_MODES
};
+#if FF_API_CHILD_CLASS_NEXT
static const AVClass *child_class_next(const AVClass *prev)
{
return prev ? NULL : avcodec_dct_get_class();
}
+#endif
+
+static const AVClass *child_class_iterate(void **iter)
+{
+ const AVClass *c = *iter ? NULL : avcodec_dct_get_class();
+ *iter = (void*)(uintptr_t)c;
+ return c;
+}
static void *child_next(void *obj, void *prev)
{
@@ -74,7 +83,10 @@ static const AVClass spp_class = {
.option = spp_options,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_FILTER,
+#if FF_API_CHILD_CLASS_NEXT
.child_class_next = child_class_next,
+#endif
+ .child_class_iterate = child_class_iterate,
.child_next = child_next,
};