[FFmpeg-devel] [PATCH 2/2] Make ffplay -h show the settable AVOptions.

Stefano Sabatini stefano.sabatini-lala
Wed Sep 1 00:53:11 CEST 2010


---
 ffplay.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 56b39d2..8546ff2 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -3107,6 +3107,17 @@ static void show_help(void)
                       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_DECODING_PARAM, 0);
+#endif
     printf("\nWhile playing:\n"
            "q, ESC              quit\n"
            "f                   toggle full screen\n"
-- 
1.7.1




More information about the ffmpeg-devel mailing list