summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorzuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-30 08:36:38 +0000
committerzuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-30 08:36:38 +0000
commit6a5b9c26d0aedcd0e161385df238542414aad719 (patch)
tree7624cb7fba0ef1815a0f18561054dc8a6531a0d1 /libmpdemux
parent78bbfea7f242f6eeb30522569c3323810d8542b4 (diff)
downloadmpv-6a5b9c26d0aedcd0e161385df238542414aad719.tar.bz2
mpv-6a5b9c26d0aedcd0e161385df238542414aad719.tar.xz
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
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/asfheader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/asfheader.c b/libmpdemux/asfheader.c
index 4f9b8b8342..ac46ad888b 100644
--- a/libmpdemux/asfheader.c
+++ b/libmpdemux/asfheader.c
@@ -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