[FFmpeg-cvslog] r19748 - trunk/libavformat/asfdec.c
cehoyos
subversion
Sun Aug 30 20:14:22 CEST 2009
Author: cehoyos
Date: Sun Aug 30 20:14:22 2009
New Revision: 19748
Log:
Fix incorrect display of ASF/WMV duration after r12926.
Patch by Josh Harris, qt tateu net
Modified:
trunk/libavformat/asfdec.c
Modified: trunk/libavformat/asfdec.c
==============================================================================
--- trunk/libavformat/asfdec.c Sun Aug 30 17:50:03 2009 (r19747)
+++ trunk/libavformat/asfdec.c Sun Aug 30 20:14:22 2009 (r19748)
@@ -245,7 +245,7 @@ static int asf_read_header(AVFormatConte
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);
More information about the ffmpeg-cvslog
mailing list