]> git.sesse.net Git - ffmpeg/blobdiff - avplay.c
mov_chan: Pass a separate AVIOContext for reading
[ffmpeg] / avplay.c
index 64d7b3da333bf1f80f3f929b0fda3a0b66484ce7..0c642e07b0b994c6f33df27d1e6a451cf4982d36 100644 (file)
--- a/avplay.c
+++ b/avplay.c
@@ -224,8 +224,6 @@ typedef struct VideoState {
     int refresh;
 } VideoState;
 
-static int show_help(const char *opt, const char *arg);
-
 /* options specified by the user */
 static AVInputFormat *file_iformat;
 static const char *input_filename;
@@ -2922,12 +2920,12 @@ static void show_usage(void)
     printf("\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);
@@ -2947,8 +2945,6 @@ static int show_help(const char *opt, const char *arg)
            "down/up             seek backward/forward 1 minute\n"
            "mouse click         seek to percentage in file corresponding to fraction of width\n"
            );
-
-    return 0;
 }
 
 static void opt_input_file(void *optctx, const char *filename)