Mercurial > mplayer.hg
changeset 23399:8a0062b81dcc
Use play duration instead of send duration to calculate the length
of an ASF clip.
author | zuxy |
---|---|
date | Wed, 30 May 2007 08:36:38 +0000 |
parents | 69bf352bcef8 |
children | 16cce5d6ff9f |
files | libmpdemux/asfheader.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/asfheader.c Wed May 30 07:07:32 2007 +0000 +++ b/libmpdemux/asfheader.c Wed May 30 08:36:38 2007 +0000 @@ -588,7 +588,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->send_duration/10000000LL; + asf->movielength=(fileh->play_duration-fileh->preroll)/10000000LL; } // find content header