# HG changeset patch # User cehoyos # Date 1251656062 0 # Node ID 3fe89226cacfa7169718a62b6523b7c82df3d787 # Parent ab5ed34ed7071c1e5bf833b464b0bd8ab606b2d1 Fix incorrect display of ASF/WMV duration after r12926. Patch by Josh Harris, qt tateu net diff -r ab5ed34ed707 -r 3fe89226cacf asfdec.c --- 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);