Use play duration instead of send duration to calculate the length

of an ASF clip.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23417 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
zuxy 2007-05-30 08:36:38 +00:00
parent 78bbfea7f2
commit 6a5b9c26d0
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ int read_asf_header(demuxer_t *demuxer,struct asf_priv* asf){
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