# HG changeset patch # User michael # Date 1173060020 0 # Node ID 7ac4b32fd3fced01be7f4ce902472bd6da5a4180 # Parent 0083e7f290c35c1dae508fe59e1fb9a9d8c6f148 all asf files i have have the 2 redundant duration fields differ by the preroll time so lets set them up like that too diff -r 0083e7f290c3 -r 7ac4b32fd3fc asf-enc.c --- a/asf-enc.c Mon Mar 05 01:42:35 2007 +0000 +++ b/asf-enc.c Mon Mar 05 02:00:20 2007 +0000 @@ -309,7 +309,7 @@ put_le64(pb, unix_to_file_time(file_time)); put_le64(pb, asf->nb_packets); /* number of packets */ put_le64(pb, duration); /* end time stamp (in 100ns units) */ - put_le64(pb, duration); /* duration (in 100ns units) */ + put_le64(pb, asf->duration); /* duration (in 100ns units) */ put_le64(pb, preroll_time); /* start time stamp */ put_le32(pb, asf->is_streamed ? 3 : 2); /* ??? */ put_le32(pb, asf->packet_size); /* packet size */