]> git.sesse.net Git - ffmpeg/commitdiff
fftools: switch to the new child class iteration API
authorAnton Khirnov <anton@khirnov.net>
Wed, 27 May 2020 13:25:38 +0000 (15:25 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 10 Jun 2020 10:36:44 +0000 (12:36 +0200)
fftools/cmdutils.c

index 13567a777ec0934d47ef80ecdab1db796b54feb7..88fdbeaf1e48fa15dc899403336bb866f6ca222a 100644 (file)
@@ -202,13 +202,14 @@ void show_help_options(const OptionDef *options, const char *msg, int req_flags,
 
 void show_help_children(const AVClass *class, int flags)
 {
-    const AVClass *child = NULL;
+    void *iter = NULL;
+    const AVClass *child;
     if (class->option) {
         av_opt_show2(&class, NULL, flags, 0);
         printf("\n");
     }
 
-    while (child = av_opt_child_class_next(class, child))
+    while (child = av_opt_child_class_iterate(class, &iter))
         show_help_children(child, flags);
 }