forked from FFmpeg/FFmpeg
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
This commit is contained in:
parent
c6dbbc4576
commit
f2086fb50e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue