X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffplay.c;h=f81bd7c84e979c0c88017ab5596fab2dacb48289;hb=85a576775e1da9f22058aecd1924762e62a29867;hp=c28883c49845da8dc3a8ec57a1f24eeac6d45499;hpb=67a6dac7c18caecb418f7590a484dcbfcad869ab;p=ffmpeg diff --git a/ffplay.c b/ffplay.c index c28883c4984..f81bd7c84e9 100644 --- a/ffplay.c +++ b/ffplay.c @@ -244,8 +244,6 @@ typedef struct AllocEventProps { AVFrame *frame; } AllocEventProps; -static int show_help(const char *opt, const char *arg); - /* options specified by the user */ static AVInputFormat *file_iformat; static const char *input_filename; @@ -3023,12 +3021,12 @@ static void show_usage(void) av_log(NULL, AV_LOG_INFO, "\n"); } -static int show_help(const char *opt, const char *arg) +void show_help_default(const char *opt, const char *arg) { av_log_set_callback(log_callback_help); show_usage(); - show_help_options(options, "Main options:", 0, OPT_EXPERT); - show_help_options(options, "Advanced options:", OPT_EXPERT, 0); + show_help_options(options, "Main options:", 0, OPT_EXPERT, 0); + show_help_options(options, "Advanced options:", OPT_EXPERT, 0, 0); printf("\n"); show_help_children(avcodec_get_class(), AV_OPT_FLAG_DECODING_PARAM); show_help_children(avformat_get_class(), AV_OPT_FLAG_DECODING_PARAM); @@ -3051,7 +3049,6 @@ static int show_help(const char *opt, const char *arg) "page down/page up seek backward/forward 10 minutes\n" "mouse click seek to percentage in file corresponding to fraction of width\n" ); - return 0; } static int lockmgr(void **mtx, enum AVLockOp op)