cmdutils: remove this_year constant, use CONFIG_THIS_YEAR instead
Simplify.
This commit is contained in:
@@ -69,8 +69,6 @@ struct SwsContext *sws_opts;
|
|||||||
AVDictionary *swr_opts;
|
AVDictionary *swr_opts;
|
||||||
AVDictionary *format_opts, *codec_opts, *resample_opts;
|
AVDictionary *format_opts, *codec_opts, *resample_opts;
|
||||||
|
|
||||||
const int this_year = CONFIG_THIS_YEAR;
|
|
||||||
|
|
||||||
static FILE *report_file;
|
static FILE *report_file;
|
||||||
|
|
||||||
void init_opts(void)
|
void init_opts(void)
|
||||||
@@ -1072,7 +1070,7 @@ static void print_program_info(int flags, int level)
|
|||||||
av_log(NULL, level, "%s version " FFMPEG_VERSION, program_name);
|
av_log(NULL, level, "%s version " FFMPEG_VERSION, program_name);
|
||||||
if (flags & SHOW_COPYRIGHT)
|
if (flags & SHOW_COPYRIGHT)
|
||||||
av_log(NULL, level, " Copyright (c) %d-%d the FFmpeg developers",
|
av_log(NULL, level, " Copyright (c) %d-%d the FFmpeg developers",
|
||||||
program_birth_year, this_year);
|
program_birth_year, CONFIG_THIS_YEAR);
|
||||||
av_log(NULL, level, "\n");
|
av_log(NULL, level, "\n");
|
||||||
av_log(NULL, level, "%sbuilt on %s %s with %s\n",
|
av_log(NULL, level, "%sbuilt on %s %s with %s\n",
|
||||||
indent, __DATE__, __TIME__, CC_IDENT);
|
indent, __DATE__, __TIME__, CC_IDENT);
|
||||||
|
@@ -43,11 +43,6 @@ extern const char program_name[];
|
|||||||
*/
|
*/
|
||||||
extern const int program_birth_year;
|
extern const int program_birth_year;
|
||||||
|
|
||||||
/**
|
|
||||||
* this year, defined by the program for show_banner()
|
|
||||||
*/
|
|
||||||
extern const int this_year;
|
|
||||||
|
|
||||||
extern AVCodecContext *avcodec_opts[AVMEDIA_TYPE_NB];
|
extern AVCodecContext *avcodec_opts[AVMEDIA_TYPE_NB];
|
||||||
extern AVFormatContext *avformat_opts;
|
extern AVFormatContext *avformat_opts;
|
||||||
extern struct SwsContext *sws_opts;
|
extern struct SwsContext *sws_opts;
|
||||||
|
@@ -2422,7 +2422,7 @@ static void ffprobe_show_program_version(WriterContext *w)
|
|||||||
writer_print_section_header(w, SECTION_ID_PROGRAM_VERSION);
|
writer_print_section_header(w, SECTION_ID_PROGRAM_VERSION);
|
||||||
print_str("version", FFMPEG_VERSION);
|
print_str("version", FFMPEG_VERSION);
|
||||||
print_fmt("copyright", "Copyright (c) %d-%d the FFmpeg developers",
|
print_fmt("copyright", "Copyright (c) %d-%d the FFmpeg developers",
|
||||||
program_birth_year, this_year);
|
program_birth_year, CONFIG_THIS_YEAR);
|
||||||
print_str("build_date", __DATE__);
|
print_str("build_date", __DATE__);
|
||||||
print_str("build_time", __TIME__);
|
print_str("build_time", __TIME__);
|
||||||
print_str("compiler_ident", CC_IDENT);
|
print_str("compiler_ident", CC_IDENT);
|
||||||
|
Reference in New Issue
Block a user