aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asfdec.c
diff options
context:
space:
mode:
authorJosh Harris <qt@tateu.net>2009-08-30 18:14:22 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-08-30 18:14:22 +0000
commitf2086fb50e0c2370ca4a3a6cc1feb52b6f0681f4 (patch)
tree302733be54de0750230ec0a975727ec103b15e70 /libavformat/asfdec.c
parentc6dbbc4576dd024b97919b8ee0d51a11cf9dbdaa (diff)
downloadffmpeg-f2086fb50e0c2370ca4a3a6cc1feb52b6f0681f4.tar.gz
Fix incorrect display of ASF/WMV duration after r12926.
Patch by Josh Harris, qt tateu net Originally committed as revision 19748 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asfdec.c')
-rw-r--r--libavformat/asfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 0995b5aa82..08f0d6586b 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -245,7 +245,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
asf_st->stream_language_index = 128; // invalid stream index means no language info
if(!(asf->hdr.flags & 0x01)) { // if we aren't streaming...
- st->duration = asf->hdr.send_time /
+ st->duration = asf->hdr.play_time /
(10000000 / 1000) - start_time;
}
get_guid(pb, &g);