[FFmpeg-cvslog] r17011 - trunk/libavformat/mxfenc.c
Michael Niedermayer
michaelni
Fri Feb 6 12:25:25 CET 2009
On Thu, Feb 05, 2009 at 02:07:18PM -0800, Baptiste Coudurier wrote:
> Hi,
>
> On 2/5/2009 1:03 PM, Reimar D?ffinger wrote:
> > On Thu, Feb 05, 2009 at 09:15:18PM +0100, bcoudurier wrote:
> >> +static uint64_t mxf_parse_timestamp(time_t timestamp)
> >> +{
> >> + struct tm *time = localtime(×tamp);
> >> + return (uint64_t)(time->tm_year+1900)<< 48 |
> >> + (uint64_t)(time->tm_mon+1)<< 40 |
> >> + (uint64_t) time->tm_mday<< 32 |
> >> + time->tm_hour<< 24 |
> >> + time->tm_min<< 16 |
> >> + time->tm_sec<< 8;
> >> +}
> >
> > Huh, the time is stored in a timezone-dependent format without storing
> > the time zone?
>
> Seems so, anyway I don't make the specs.
>
> Besides which format specifies the time zone ?
> mov/mp4 doesn't, at least.
mov/mp4 supports everything except what is needed or usefull!
heres what nut says:
"CreationTime"
"2003-01-20 20:13:15Z", ...
(ISO 8601 format, see http://www.cl.cam.ac.uk/~mgk25/iso-time.html)
Note: Do not forget the timezone.
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20090206/331f17f9/attachment.pgp>
More information about the ffmpeg-cvslog
mailing list