[cvs-annodex] commit (/annodex): liboggz/trunk/src/tools/oggzinfo.c
conrad
nobody at lists.annodex.net
Sun Apr 10 14:08:50 EST 2005
Update of /annodex (new revision 1229)
Modified files:
liboggz/trunk/src/tools/oggzinfo.c
Log Message:
oggzinfo: Fix calculation of content duration.
Previously, oggz_seek(oggz, SEEK_END) was used to seek to the start of the
last packet. However, for packets which span multiple pages (such as huge
theora frames), you would then need to scan forward to find its granulepos.
We could have done this, but here we take advantage of the fact that we are
already at the end of the file after pass1, so we can just call
oggz_tell_units(oggz) to get the granulepos of the last packet.
Closes ticket:117
Modified: liboggz/trunk/src/tools/oggzinfo.c
===================================================================
--- liboggz/trunk/src/tools/oggzinfo.c 2005-04-10 03:15:59 UTC (rev 1228)
+++ liboggz/trunk/src/tools/oggzinfo.c 2005-04-10 04:08:49 UTC (rev 1229)
@@ -494,7 +494,6 @@
oi_pass1 (oggz, &info);
- oggz_seek_units (oggz, 0, SEEK_END);
info.duration = oggz_tell_units (oggz);
oi_pass2 (oggz, &info);
--
conrad
More information about the cvs-annodex
mailing list