diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-08-23 09:43:54 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-03 22:58:15 +0400 |
commit | 20c21f8b759cd4e759208f85dd6e34991c959043 (patch) | |
tree | 2c46aef04a11be415c8f37a8cbd765e52531cd25 /avplay.c | |
parent | fb4ca26bdbddfbbf21a2a212485d225438b4b234 (diff) |
cmdutils: get rid of dummy contexts for examining AVOptions.
Replace it with newly introduced libavutil API.
Diffstat (limited to 'avplay.c')
-rw-r--r-- | avplay.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -2974,6 +2974,7 @@ static void show_usage(void) static void show_help(void) { + const AVClass *class; av_log_set_callback(log_callback_help); show_usage(); show_help_options(options, "Main options:\n", @@ -2981,14 +2982,17 @@ static void show_help(void) show_help_options(options, "\nAdvanced options:\n", OPT_EXPERT, OPT_EXPERT); printf("\n"); - av_opt_show2(avcodec_opts[0], NULL, + class = avcodec_get_class(); + av_opt_show2(&class, NULL, AV_OPT_FLAG_DECODING_PARAM, 0); printf("\n"); - av_opt_show2(avformat_opts, NULL, + class = avformat_get_class(); + av_opt_show2(&class, NULL, AV_OPT_FLAG_DECODING_PARAM, 0); #if !CONFIG_AVFILTER printf("\n"); - av_opt_show2(sws_opts, NULL, + class = sws_get_class(); + av_opt_show2(&class, NULL, AV_OPT_FLAG_ENCODING_PARAM, 0); #endif printf("\nWhile playing:\n" |