static void show_format_opts(void)
{
- AVInputFormat *iformat = NULL;
- AVOutputFormat *oformat = NULL;
+ const AVInputFormat *iformat = NULL;
+ const AVOutputFormat *oformat = NULL;
+ void *iformat_opaque = NULL;
+ void *oformat_opaque = NULL;
printf("@section Generic format AVOptions\n");
show_opts(avformat_get_class());
printf("@section Format-specific AVOptions\n");
- while ((iformat = av_iformat_next(iformat))) {
+ while ((iformat = av_demuxer_iterate(&iformat_opaque))) {
if (!iformat->priv_class)
continue;
printf("@subsection %s AVOptions\n", iformat->priv_class->class_name);
show_opts(iformat->priv_class);
}
- while ((oformat = av_oformat_next(oformat))) {
+ while ((oformat = av_muxer_iterate(&oformat_opaque))) {
if (!oformat->priv_class)
continue;
printf("@subsection %s AVOptions\n", oformat->priv_class->class_name);
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);
if (argc < 2)
print_usage();
- av_register_all();
-
if (!strcmp(argv[1], "format"))
show_format_opts();
else if (!strcmp(argv[1], "codec"))