[xiph-commits] r11074 - experimental/giles/rogg

giles at svn.xiph.org giles at svn.xiph.org
Fri Mar 31 23:48:49 PST 2006


Author: giles
Date: 2006-03-31 23:48:47 -0800 (Fri, 31 Mar 2006)
New Revision: 11074

Modified:
   experimental/giles/rogg/rogg_eosfix.c
Log:
Add some comments.


Modified: experimental/giles/rogg/rogg_eosfix.c
===================================================================
--- experimental/giles/rogg/rogg_eosfix.c	2006-03-31 02:14:12 UTC (rev 11073)
+++ experimental/giles/rogg/rogg_eosfix.c	2006-04-01 07:48:47 UTC (rev 11074)
@@ -161,8 +161,8 @@
 	continue;
     }
     fprintf(stdout, "Checking Ogg file '%s'\n", argv[i]);
-    e = p + s.st_size;
-    q = rogg_scan(p, s.st_size);
+    e = p + s.st_size; /* pointer to the end of the file */
+    q = rogg_scan(p, s.st_size); /* scan for an Ogg page */
     refs = NULL;
     if (q == NULL) {
 	fprintf(stdout, "couldn't find ogg data!\n");
@@ -171,7 +171,7 @@
 	fprintf(stdout, "Skipped %d garbage bytes at the start\n", q-p);
       } 
       while (q < e) {
-	o = rogg_scan(q, e-q);
+	o = rogg_scan(q, e-q); /* find the next Ogg page */
 	if (o > q) {
 	  fprintf(stdout, "Hole in data! skipped %d bytes\n", o - q);
 	   q = o;



More information about the commits mailing list