[FFmpeg-cvslog] parseutils: add av_parse_time() test.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Apr 27 12:41:34 CEST 2012


On Fri, Apr 27, 2012 at 12:31:55PM +0200, Michael Niedermayer wrote:
> On Mon, Apr 23, 2012 at 02:51:34PM +0200, Nicolas George wrote:
> > ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Mon Apr 16 15:58:21 2012 +0200| [9b84f8a987e7cd3bb966d065d50d79d453907bad] | committer: Nicolas George
> > 
> > parseutils: add av_parse_time() test.
> [...]
> > @@ -776,6 +779,52 @@ int main(void)
> >          }
> >      }
> >  
> > +    printf("\nTesting av_parse_time()\n");
> > +    {
> > +        int i;
> > +        int64_t tv;
> > +        time_t tvi;
> > +        struct tm *tm;
> > +        const char *time_string[] = {
> > +            "now",
> > +            "12:35:46",
> > +            "2000-12-20 0:02:47.5z",
> > +            "2000-12-20T010247.6",
> > +        };
> > +        const char *duration_string[] = {
> > +            "2:34:56.79",
> > +            "-1:23:45.67",
> > +            "42.1729",
> > +            "-1729.42",
> > +            "12:34",
> > +        };
> > +
> > +        av_log_set_level(AV_LOG_DEBUG);
> 
> > +        setenv("TZ", "CET-1", 1);
> 
> this seems failing on mingw / wine

putenv is more portable, in particular it is available on MinGW.
Though I don't particularly like use depending on that kind of stuff, in
particular since I believe that the TZ environment variable is intended
to be removed in the long term.


More information about the ffmpeg-cvslog mailing list