[FFmpeg-cvslog] r16406 - trunk/cmdutils.c

Stefano Sabatini stefano.sabatini-lala
Sat Jan 10 11:18:52 CET 2009


On date Tuesday 2009-01-06 22:29:34 +0100, Stefano Sabatini wrote:
> On date Friday 2009-01-02 12:51:55 +0100, Stefano Sabatini wrote:
> > On date Friday 2009-01-02 16:45:14 +0530, Jai Menon wrote:
> > > Hi,
> > > 
> > > On Fri, Jan 2, 2009 at 4:39 PM, stefano <subversion at mplayerhq.hu> wrote:
> > > > Author: stefano
> > > > Date: Fri Jan  2 12:09:37 2009
> > > > New Revision: 16406
> > > >
> > > > Log:
> > > > Bump year number.
> > > >
> > > > Modified:
> > > >   trunk/cmdutils.c
> > > >
> > > > Modified: trunk/cmdutils.c
> > > > ==============================================================================
> > > > --- trunk/cmdutils.c    Fri Jan  2 11:07:26 2009        (r16405)
> > > > +++ trunk/cmdutils.c    Fri Jan  2 12:09:37 2009        (r16406)
> > > > @@ -292,7 +292,7 @@ static void print_all_lib_versions(FILE*
> > > >
> > > >  void show_banner(void)
> > > >  {
> > > > -    fprintf(stderr, "%s version " FFMPEG_VERSION ", Copyright (c) %d-2008 Fabrice Bellard, et al.\n",
> > > > +    fprintf(stderr, "%s version " FFMPEG_VERSION ", Copyright (c) %d-2009 Fabrice Bellard, et al.\n",
> > > >             program_name, program_birth_year);
> > > 
> > > Maybe this could be #defined or value got from __DATE__...
> > 
> > No I think it should be set manually at every year bump to show that
> > the project is still alive, and also as a propitiatory rite...
> > 
> > But maybe someone may prefer like in the attached patch.
> > 
> > Regards, and happy new year!
> 
> > Index: cmdutils.h
> > ===================================================================
> > --- cmdutils.h	(revision 16404)
> > +++ cmdutils.h	(working copy)
> > @@ -37,6 +37,8 @@
> >   */
> >  extern const int program_birth_year;
> >  
> > +extern const int this_year;
> > +
> >  extern const char **opt_names;
> >  extern AVCodecContext *avctx_opts[CODEC_TYPE_NB];
> >  extern AVFormatContext *avformat_opts;
> > Index: cmdutils.c
> > ===================================================================
> > --- cmdutils.c	(revision 16406)
> > +++ cmdutils.c	(working copy)
> > @@ -54,6 +54,8 @@
> >  AVFormatContext *avformat_opts;
> >  struct SwsContext *sws_opts;
> >  
> > +const int this_year = 2009;
> > +
> >  double parse_number_or_die(const char *context, const char *numstr, int type, double min, double max)
> >  {
> >      char *tail;
> > @@ -292,8 +294,8 @@
> >  
> >  void show_banner(void)
> >  {
> > -    fprintf(stderr, "%s version " FFMPEG_VERSION ", Copyright (c) %d-2009 Fabrice Bellard, et al.\n",
> > -            program_name, program_birth_year);
> > +    fprintf(stderr, "%s version " FFMPEG_VERSION ", Copyright (c) %d-%d Fabrice Bellard, et al.\n",
> > +            program_name, program_birth_year, this_year);
> >      fprintf(stderr, "  configuration: " FFMPEG_CONFIGURATION "\n");
> >      print_all_lib_versions(stderr, 1);
> >      fprintf(stderr, "  built on " __DATE__ " " __TIME__);
> 
> Any interest in this?

I'll apply in a week if there are no objections.

Regards.




More information about the ffmpeg-cvslog mailing list