mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
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:
parent
78bbfea7f2
commit
6a5b9c26d0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user