int width, height, xleft, ytop;
} VideoState;
-void show_help(void);
+static void show_help(void);
static int audio_write_get_buf_size(VideoState *is);
/* options specified by the user */
/* prepare a new audio buffer */
-void sdl_audio_callback(void *opaque, Uint8 *stream, int len)
+static void sdl_audio_callback(void *opaque, Uint8 *stream, int len)
{
VideoState *is = opaque;
int audio_size, len1;
exit(0);
}
-const OptionDef options[] = {
+static const OptionDef options[] = {
{ "h", 0, {(void*)opt_show_help}, "show help" },
{ "x", HAS_ARG | OPT_FUNC2, {(void*)opt_width}, "force displayed width", "width" },
{ "y", HAS_ARG | OPT_FUNC2, {(void*)opt_height}, "force displayed height", "height" },
{ NULL, },
};
-void show_help(void)
+static void show_help(void)
{
printf("usage: ffplay [options] input_file\n"
"Simple media player\n");
);
}
-void opt_input_file(const char *filename)
+static void opt_input_file(const char *filename)
{
if (!strcmp(filename, "-"))
filename = "pipe:";