diff asfdec.c @ 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 293c03f0d47f
children f292b3e34823
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);