[MPlayer-cvslog] r29880 - trunk/libmpdemux/asfheader.c
reimar
subversion at mplayerhq.hu
Tue Nov 10 17:19:45 CET 2009
Author: reimar
Date: Tue Nov 10 17:19:44 2009
New Revision: 29880
Log:
Fix length calculation for ASF, preroll is in ms, play time in 100 ns.
Modified:
trunk/libmpdemux/asfheader.c
Modified: trunk/libmpdemux/asfheader.c
==============================================================================
--- trunk/libmpdemux/asfheader.c Tue Nov 10 17:15:39 2009 (r29879)
+++ trunk/libmpdemux/asfheader.c Tue Nov 10 17:19:44 2009 (r29880)
@@ -544,7 +544,7 @@ int read_asf_header(demuxer_t *demuxer,s
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
More information about the MPlayer-cvslog
mailing list