[xiph-commits] r3878 - liboggz/trunk/src/tools/oggz-chop
conrad at svn.annodex.net
conrad at svn.annodex.net
Mon Mar 16 21:18:45 PDT 2009
Author: conrad
Date: 2009-03-16 21:18:45 -0700 (Mon, 16 Mar 2009)
New Revision: 3878
Modified:
liboggz/trunk/src/tools/oggz-chop/oggz-chop.c
Log:
oggz-chop: clarify selection of earliest_new page
Modified: liboggz/trunk/src/tools/oggz-chop/oggz-chop.c
===================================================================
--- liboggz/trunk/src/tools/oggz-chop/oggz-chop.c 2009-03-16 12:54:27 UTC (rev 3877)
+++ liboggz/trunk/src/tools/oggz-chop/oggz-chop.c 2009-03-17 04:18:45 UTC (rev 3878)
@@ -273,8 +273,10 @@
pa = (OCPageAccum *) oggz_table_lookup (ts->page_accum, i);
/* If we have a page with granulepos, it necessarily contains the end
- * of a packet from an earlier GOP, and thus this is the last page that
- * we need to recover.
+ * of a packet from an earlier GOP, and may contain the start of
+ * a packet from the new GOP. Thus it is the earliest page that we need
+ * to recover.
+ * We are working backwards, so we can break out when we have found it.
*/
if (ogg_page_granulepos (pa->og) != -1) {
earliest_new = i;
More information about the commits
mailing list