Commit 09cd269f authored by conrad's avatar conrad

add documentation of all errors detected by oggz-validate


git-svn-id: http://svn.annodex.net/liboggz/trunk@1989 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent caf65a4e
......@@ -80,12 +80,16 @@ manpage.1: manpage.sgml
<para><command>&dhpackage;</command> detects the following errors
in Ogg framing:
<itemizedlist>
<listitem>Packet out of order</listitem>
<listitem><para>Multiple bos packets</para></listitem>
<listitem><para>Multiple eos packets</para></listitem>
<listitem><para>Missing eos packets</para></listitem>
<listitem><para>Packet belongs to unknown serialno</para></listitem>
<listitem><para>Granulepos decreasing within track</para></lisitem>
<listitem><para>File contains no Ogg packets</para></listitem>
<listitem><para>Packets out of order</para></listitem>
<listitem><para>Packet belongs to unknown serialno</para></listitem>
<listitem><para>Granulepos decreasing within track</para></listitem>
<listitem><para>Multiple bos packets</para></listitem>
<listitem><para>Multiple eos packets</para></listitem>
<listitem><para>eos marked but no bos</para></listitem>
<listitem><para>Missing eos packets</para></listitem>
<listitem><para>Granulepos on page with no completed packets</para></listitem>
<listitem><para>Theora video bos page after audio bos page</para></listitem>
</itemizedlist>
</para>
<para>
......
......@@ -59,10 +59,10 @@ typedef struct {
} error_text;
static error_text errors[] = {
{-5, "Multiple bos packets"},
{-6, "Multiple eos packets"},
{-20, "Packet belongs to unknown serialno"},
{-24, "Granulepos decreasing within track"},
{-5, "Multiple bos packets"},
{-6, "Multiple eos packets"},
{0, NULL}
};
......@@ -80,10 +80,15 @@ usage (char * progname)
printf ("Usage: %s [options] filename ...\n", progname);
printf ("Validate the Ogg framing of one or more files\n");
printf ("\n%s detects the following errors in Ogg framing:\n", progname);
printf (" Packet out of order\n");
printf (" File contains no Ogg packets\n");
printf (" Packets out of order\n");
for (i = 0; errors[i].error; i++) {
printf (" %s\n", errors[i].description);
}
printf (" eos marked but no bos\n");
printf (" Missing eos packets\n");
printf (" Granulepos on page with no completed packets\n");
printf (" Theora video bos page after audio bos page\n");
printf ("\nMiscellaneous options\n");
printf (" -h, --help Display this help and exit\n");
printf (" -v, --version Output version information and exit\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment