future simplifications.
Originally committed as revision 13232 to svn://svn.ffmpeg.org/ffmpeg/trunk
#endif
}
-void show_version(const char *program_name) {
+void show_version(void) {
/* TODO: add function interface to avutil and avformat avdevice*/
printf("%s " FFMPEG_VERSION "\n", program_name);
printf("libavutil %d\n"
#include <inttypes.h>
/**
+ * program name, defined by the program for show_version().
+ */
+extern const char program_name[];
+
+/**
* Parses a string and returns its corresponding value as a double.
* Exits from the application if the string cannot be correctly
* parsed or the corresponding value is invalid.
* libraries.
* @param program_name name of the program
*/
-void show_version(const char *program_name);
+void show_version(void);
/**
* Prints the license of the program to stdout. The license depends on
#undef exit
-static const char program_name[] = "FFmpeg";
+const char program_name[] = "FFmpeg";
static const int program_birth_year = 2000;
/* select an input stream for an output stream */
static void opt_show_version(void)
{
- show_version(program_name);
+ show_version();
av_exit(0);
}
#undef exit
-static const char program_name[] = "FFplay";
+const char program_name[] = "FFplay";
static const int program_birth_year = 2003;
//#define DEBUG_SYNC
static void opt_show_version(void)
{
- show_version(program_name);
+ show_version();
exit(0);
}
#undef exit
-static const char program_name[] = "FFserver";
+const char program_name[] = "FFserver";
static const int program_birth_year = 2000;
static const OptionDef options[];