summaryrefslogtreecommitdiff
path: root/avplay.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-08-23 07:43:54 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-03 20:58:15 +0200
commit20c21f8b759cd4e759208f85dd6e34991c959043 (patch)
tree2c46aef04a11be415c8f37a8cbd765e52531cd25 /avplay.c
parentfb4ca26bdbddfbbf21a2a212485d225438b4b234 (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.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/avplay.c b/avplay.c
index 710c1b5469..1880668d65 100644
--- a/avplay.c
+++ b/avplay.c
@@ -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"