Mercurial > libavformat.hg
changeset 1862:7ac4b32fd3fc libavformat
all asf files i have have the 2 redundant duration fields differ by the preroll time so lets set them up like that too
author | michael |
---|---|
date | Mon, 05 Mar 2007 02:00:20 +0000 |
parents | 0083e7f290c3 |
children | 97b153836b82 |
files | asf-enc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 */