Browse Source

tools: stop using deprecated av_codec_next()

Signed-off-by: Josh de Kock <josh@itanimul.li>
tags/n4.3
Josh de Kock 5 years ago
parent
commit
39962072a8
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tools/enum_options.c

+ 2
- 1
tools/enum_options.c View 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);


Loading…
Cancel
Save