diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-03-05 02:00:20 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-03-05 02:00:20 +0000 |
commit | 737287f802e80a3f616cf424de5dd1b102b57a1c (patch) | |
tree | 2c8f4504524ac743a0c12c5314247e311558e298 /libavformat/asf-enc.c | |
parent | 634b256913b386321ad6d082a407ad43f92b96e5 (diff) | |
download | ffmpeg-737287f802e80a3f616cf424de5dd1b102b57a1c.tar.gz |
all asf files i have have the 2 redundant duration fields differ by the preroll time so lets set them up like that too
Originally committed as revision 8239 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf-enc.c')
-rw-r--r-- | libavformat/asf-enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asf-enc.c b/libavformat/asf-enc.c index b4bbc45a01..fa17ebbc73 100644 --- a/libavformat/asf-enc.c +++ b/libavformat/asf-enc.c @@ -309,7 +309,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data 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 */ |