[xiph-commits] r3302 - liboggz/trunk/src/tools
conrad at svn.annodex.net
conrad at svn.annodex.net
Fri Dec 7 13:49:37 PST 2007
Author: conrad
Date: 2007-12-07 13:49:31 -0800 (Fri, 07 Dec 2007)
New Revision: 3302
Modified:
liboggz/trunk/src/tools/oggz-validate.c
Log:
add some debugging statements to oggz-validate
Modified: liboggz/trunk/src/tools/oggz-validate.c
===================================================================
--- liboggz/trunk/src/tools/oggz-validate.c 2007-12-07 11:24:11 UTC (rev 3301)
+++ liboggz/trunk/src/tools/oggz-validate.c 2007-12-07 21:49:31 UTC (rev 3302)
@@ -44,6 +44,8 @@
#define SUBSECONDS 1000.0
+/* #define DEBUG */
+
typedef ogg_int64_t timestamp_t;
typedef struct _OVData {
@@ -343,11 +345,18 @@
oggz_set_read_page (reader, -1, read_page, &ovdata);
while (active && (n = oggz_read (reader, 1024)) != 0) {
+#ifdef DEBUG
+ fprintf (stderr, "validate: read %ld bytes\n", n);
+#endif
+
if (max_errors && nr_errors > max_errors) {
fprintf (stderr,
"oggz-validate: maximum error count reached, bailing out ...\n");
active = 0;
} else while ((nout = oggz_write_output (ovdata.writer, buf, n)) > 0) {
+#ifdef DEBUG
+ fprintf (stderr, "validate: wrote %ld bytes\n", nout);
+#endif
bytes_written += nout;
}
}
More information about the commits
mailing list