changeset 5153:3fe89226cacf libavformat

Fix incorrect display of ASF/WMV duration after r12926. Patch by Josh Harris, qt tateu net
author cehoyos
date Sun, 30 Aug 2009 18:14:22 +0000
parents ab5ed34ed707
children 36b6bb08e0e2
files asfdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/asfdec.c	Fri Aug 28 00:44:54 2009 +0000
+++ b/asfdec.c	Sun Aug 30 18:14:22 2009 +0000
@@ -245,7 +245,7 @@
             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);