[MPlayer-cvslog] r23417 - trunk/libmpdemux/asfheader.c

zuxy subversion at mplayerhq.hu
Wed May 30 10:36:38 CEST 2007


Author: zuxy
Date: Wed May 30 10:36:38 2007
New Revision: 23417

Log:
Use play duration instead of send duration to calculate the length
of an ASF clip.


Modified:
   trunk/libmpdemux/asfheader.c

Modified: trunk/libmpdemux/asfheader.c
==============================================================================
--- trunk/libmpdemux/asfheader.c	(original)
+++ trunk/libmpdemux/asfheader.c	Wed May 30 10:36:38 2007
@@ -588,7 +588,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->send_duration/10000000LL;
+      asf->movielength=(fileh->play_duration-fileh->preroll)/10000000LL;
   }
 
   // find content header



More information about the MPlayer-cvslog mailing list