aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-24 00:51:43 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-24 00:51:43 +0000
commitf66eb58ec4c3640b82f21da14668c7941019bd49 (patch)
treee5a219237b4733529e0c2b5655248896777611aa /ffplay.c
parente44c01563f03bf5cd0b6e59fd32f145db3861b33 (diff)
downloadffmpeg-f66eb58ec4c3640b82f21da14668c7941019bd49.tar.gz
Make ffplay -h show the settable AVOptions.
Originally committed as revision 25167 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index c85c9ddc1a..0272c3b149 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -3103,11 +3103,23 @@ static void show_usage(void)
static void show_help(void)
{
+ av_log_set_callback(log_callback_help);
show_usage();
show_help_options(options, "Main options:\n",
OPT_EXPERT, 0);
show_help_options(options, "\nAdvanced options:\n",
OPT_EXPERT, OPT_EXPERT);
+ printf("\n");
+ av_opt_show2(avcodec_opts[0], NULL,
+ AV_OPT_FLAG_DECODING_PARAM, 0);
+ printf("\n");
+ av_opt_show2(avformat_opts, NULL,
+ AV_OPT_FLAG_DECODING_PARAM, 0);
+#if !CONFIG_AVFILTER
+ printf("\n");
+ av_opt_show2(sws_opts, NULL,
+ AV_OPT_FLAG_ENCODING_PARAM, 0);
+#endif
printf("\nWhile playing:\n"
"q, ESC quit\n"
"f toggle full screen\n"