Mercurial > mplayer.hg
changeset 29838:ccb6a75dedf7
Fix length calculation for ASF, preroll is in ms, play time in 100 ns.
Based on patch by On2
author | reimar |
---|---|
date | Tue, 10 Nov 2009 16:19:44 +0000 |
parents | 569856f892d9 |
children | a2a009b24502 |
files | libmpdemux/asfheader.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/asfheader.c Tue Nov 10 16:15:39 2009 +0000 +++ b/libmpdemux/asfheader.c Tue Nov 10 16:19:44 2009 +0000 @@ -544,7 +544,7 @@ asf->packetsize=fileh->max_packet_size; asf->packet=malloc(asf->packetsize); // !!! asf->packetrate=fileh->max_bitrate/8.0/(double)asf->packetsize; - asf->movielength=(fileh->play_duration-fileh->preroll)/10000000LL; + asf->movielength=(fileh->play_duration-10000*fileh->preroll)/10000000LL; } // find content header