[SCM] libav/experimental: Fix incorrect display of ASF/WMV duration after r12926.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:50:39 UTC 2013
The following commit has been merged in the experimental branch:
commit f2086fb50e0c2370ca4a3a6cc1feb52b6f0681f4
Author: Josh Harris <qt at tateu.net>
Date: Sun Aug 30 18:14:22 2009 +0000
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
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 0995b5a..08f0d65 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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list