use timestamp as creation date
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 5 Feb 2009 18:32:42 +0000 (18:32 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 5 Feb 2009 18:32:42 +0000 (18:32 +0000)
Originally committed as revision 17007 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mxfenc.c

index 4e88cb5..414ef55 100644 (file)
@@ -359,9 +359,9 @@ static void mxf_write_preface(AVFormatContext *s)
     mxf_write_uuid(pb, Preface, 0);
     PRINT_KEY(s, "preface uid", pb->buf_ptr - 16);
 
-    // write create date as unknown
+    // write creation date
     mxf_write_local_tag(pb, 8, 0x3B02);
-    put_be64(pb, 0);
+    put_be64(pb, s->timestamp);
 
     // write version
     mxf_write_local_tag(pb, 2, 0x3B05);