@@ -40,14 +40,14 @@ static void print_option(const AVClass *class, const AVOption *o)
40
40
{
41
41
printf ("@item -%s @var{" , o -> name );
42
42
switch (o -> type ) {
43
- case FF_OPT_TYPE_BINARY : printf ("hexadecimal string" ); break ;
44
- case FF_OPT_TYPE_STRING : printf ("string" ); break ;
45
- case FF_OPT_TYPE_INT :
46
- case FF_OPT_TYPE_INT64 : printf ("integer" ); break ;
47
- case FF_OPT_TYPE_FLOAT :
48
- case FF_OPT_TYPE_DOUBLE : printf ("float" ); break ;
49
- case FF_OPT_TYPE_RATIONAL : printf ("rational number" ); break ;
50
- case FF_OPT_TYPE_FLAGS : printf ("flags" ); break ;
43
+ case AV_OPT_TYPE_BINARY : printf ("hexadecimal string" ); break ;
44
+ case AV_OPT_TYPE_STRING : printf ("string" ); break ;
45
+ case AV_OPT_TYPE_INT :
46
+ case AV_OPT_TYPE_INT64 : printf ("integer" ); break ;
47
+ case AV_OPT_TYPE_FLOAT :
48
+ case AV_OPT_TYPE_DOUBLE : printf ("float" ); break ;
49
+ case AV_OPT_TYPE_RATIONAL : printf ("rational number" ); break ;
50
+ case AV_OPT_TYPE_FLAGS : printf ("flags" ); break ;
51
51
default : printf ("value" ); break ;
52
52
}
53
53
printf ("} (@emph{" );
@@ -68,8 +68,8 @@ static void print_option(const AVClass *class, const AVOption *o)
68
68
const AVOption * u = NULL ;
69
69
printf ("\nPossible values:\n@table @samp\n" );
70
70
71
- while ((u = av_next_option (& class , u )))
72
- if (u -> type == FF_OPT_TYPE_CONST && u -> unit && !strcmp (u -> unit , o -> unit ))
71
+ while ((u = av_opt_next (& class , u )))
72
+ if (u -> type == AV_OPT_TYPE_CONST && u -> unit && !strcmp (u -> unit , o -> unit ))
73
73
printf ("@item %s\n%s\n" , u -> name , u -> help ? u -> help : "" );
74
74
printf ("@end table\n" );
75
75
}
@@ -80,8 +80,8 @@ static void show_opts(const AVClass *class)
80
80
const AVOption * o = NULL ;
81
81
82
82
printf ("@table @option\n" );
83
- while ((o = av_next_option (& class , o )))
84
- if (o -> type != FF_OPT_TYPE_CONST )
83
+ while ((o = av_opt_next (& class , o )))
84
+ if (o -> type != AV_OPT_TYPE_CONST )
85
85
print_option (class , o );
86
86
printf ("@end table\n" );
87
87
}
@@ -114,7 +114,7 @@ static void show_format_opts(void)
114
114
static void show_codec_opts (void )
115
115
{
116
116
void * iter = NULL ;
117
- AVCodec * c = NULL ;
117
+ const AVCodec * c ;
118
118
119
119
printf ("@section Generic codec AVOptions\n" );
120
120
show_opts (avcodec_get_class ());
0 commit comments