Commit b1fc39ec authored by cehoyos's avatar cehoyos

Fix incorrect display of ASF/WMV duration after r12926.

Patch by Josh Harris, qt tateu net 


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19748 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 714aa573
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment