tools: stop using deprecated av_codec_next()
authorJosh de Kock <josh@itanimul.li>
Tue, 14 Apr 2020 12:34:53 +0000 (13:34 +0100)
committerJosh de Kock <josh@itanimul.li>
Mon, 20 Apr 2020 15:08:20 +0000 (15:08 +0000)
Signed-off-by: Josh de Kock <josh@itanimul.li>
tools/enum_options.c

index 28631d1..548e427 100644 (file)
@@ -113,13 +113,14 @@ static void show_format_opts(void)
 
 static void show_codec_opts(void)
 {
+    void *iter = NULL;
     AVCodec *c = NULL;
 
     printf("@section Generic codec AVOptions\n");
     show_opts(avcodec_get_class());
 
     printf("@section Codec-specific AVOptions\n");
-    while ((c = av_codec_next(c))) {
+    while ((c = av_codec_iterate(&iter))) {
         if (!c->priv_class)
             continue;
         printf("@subsection %s AVOptions\n", c->priv_class->class_name);