[FFmpeg-devel] [PATCH 2/3] lavf/mxfdec: use more widely supported time format string

Michael Niedermayer michaelni at gmx.at
Sat Apr 13 16:54:20 CEST 2013


On Sat, Apr 13, 2013 at 04:29:15PM +0200, Matthieu Bouron wrote:
> On Sat, Apr 13, 2013 at 03:45:56PM +0200, Hendrik Leppkes wrote:
> > MSVC lacks support for %T and %F, but the standard specifies them
> > only as shorthands to the long variants.
> > ---
> >  libavformat/mxfdec.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
> > index adc5c68..6306756 100644
> > --- a/libavformat/mxfdec.c
> > +++ b/libavformat/mxfdec.c
> > @@ -1671,7 +1671,7 @@ static int mxf_timestamp_to_str(uint64_t timestamp, char **str)
> >      *str = av_mallocz(32);
> >      if (!*str)
> >          return AVERROR(ENOMEM);
> > -    strftime(*str, 32, "%F %T", &time);
> > +    strftime(*str, 32, "%Y-%m-%d %H:%M:%S", &time);
> >  
> >      return 0;
> >  }
> > -- 
> > 1.8.1.msysgit.1
> > 
> 
> LGTM according to strftime's man.

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130413/767012bb/attachment.asc>


More information about the ffmpeg-devel mailing list