[cvs-annodex] commit (/annodex): liboggz/trunk/doc/oggzrip.1
liboggz/trunk/doc/oggzrip.1.sgml liboggz/trunk/src/tools/oggzrip.c
conrad
nobody at lists.annodex.net
Sat Feb 5 14:48:30 EST 2005
Update of /annodex (new revision 840)
Modified files:
liboggz/trunk/doc/oggzrip.1
liboggz/trunk/doc/oggzrip.1.sgml
liboggz/trunk/src/tools/oggzrip.c
Log Message:
rename --codec-name long option to more generic --content-type in oggzrip
Modified: liboggz/trunk/doc/oggzrip.1
===================================================================
--- liboggz/trunk/doc/oggzrip.1 2005-02-05 03:41:17 UTC (rev 839)
+++ liboggz/trunk/doc/oggzrip.1 2005-02-05 03:48:24 UTC (rev 840)
@@ -87,8 +87,8 @@
streams in the order of their BOS pages,
starting at 0.
-.IP "-c \fBcodec-name\fR --codec-name \fBcodec-name\fR" 10
-Filter by codec-name. The following codecs
+.IP "-c \fBcontent-type\fR --content-type \fBcontent-type\fR" 10
+Filter by content-type. The following codec names
are currently detected: "theora",
"vorbis", "speex", "annodex"
@@ -104,4 +104,4 @@
\fBoggzmerge\fP\fB(1)\fP,
\fBoggzdump\fP\fB(1)\fP,
\fBoggzdiff\fP\fB(1)\fP
-.\" created by instant / docbook-to-man, Sat 22 Jan 2005, 14:09
+.\" created by instant / docbook-to-man, Sat 05 Feb 2005, 15:44
Modified: liboggz/trunk/doc/oggzrip.1.sgml
===================================================================
--- liboggz/trunk/doc/oggzrip.1.sgml 2005-02-05 03:41:17 UTC (rev 839)
+++ liboggz/trunk/doc/oggzrip.1.sgml 2005-02-05 03:48:24 UTC (rev 840)
@@ -125,8 +125,8 @@
</para></listitem>
</varlistentry>
<varlistentry>
- <term>-c <parameter>codec-name</parameter> --codec-name <parameter>codec-name</parameter></term>
- <listitem><para>Filter by codec-name. The following codecs
+ <term>-c <parameter>content-type</parameter> --content-type <parameter>content-type</parameter></term>
+ <listitem><para>Filter by content-type. The following codec names
are currently detected: "theora",
"vorbis", "speex", "annodex"
</para></listitem>
Modified: liboggz/trunk/src/tools/oggzrip.c
===================================================================
--- liboggz/trunk/src/tools/oggzrip.c 2005-02-05 03:41:17 UTC (rev 839)
+++ liboggz/trunk/src/tools/oggzrip.c 2005-02-05 03:48:24 UTC (rev 840)
@@ -67,21 +67,21 @@
long serialnos[MAX_FILTER];
int num_streamids;
long streamids[MAX_FILTER];
- int num_codec_names;
- const char *codec_names[MAX_FILTER];
+ int num_content_types;
+ const char *content_types[MAX_FILTER];
} ORData;
typedef struct {
long serialno;
int streamid;
- const char *codec_name;
+ const char *content_type;
int bos;
} ORStream;
typedef struct {
const char *bos_str;
int bos_str_len;
- const char *codec_name;
+ const char *content_type;
} ORCodecIdent;
static int streamid_count = 0;
@@ -113,9 +113,9 @@
printf (" Filter by stream-ID, IDs are assigned to\n");
printf (" streams in the order of their BOS pages,\n");
printf (" starting at 0.\n");
- printf (" -c codec-name --codec-name codec-name\n");
- printf (" Filter by codec-name. The following codecs\n");
- printf (" are currently detected: \"theora\",\n");
+ printf (" -c content-type --content-type content-type\n");
+ printf (" Filter by content-type. The following codec\n");
+ printf (" names are currently detected: \"theora\",\n");
printf (" \"vorbis\", \"speex\", \"annodex\"\n");
printf ("\n");
printf ("Please report bugs to <ogg-dev at xiph.org>\n");
@@ -166,8 +166,8 @@
return 1;
}
- for (i = 0; i < ordata->num_codec_names; i++) {
- if (strcmp (ordata->codec_names[i], stream->codec_name) == 0)
+ for (i = 0; i < ordata->num_content_types; i++) {
+ if (strcmp (ordata->content_types[i], stream->content_type) == 0)
return 1;
}
@@ -184,7 +184,7 @@
stream->serialno = serialno;
stream->streamid = streamid_count++;
- stream->codec_name = "unknown";
+ stream->content_type = "unknown";
/* try to identify stream codec name by looking at the first bytes of the
* first packet */
@@ -195,7 +195,7 @@
break;
if (og->body_len >= ident->bos_str_len &&
memcmp (og->body, ident->bos_str, ident->bos_str_len) == 0) {
- stream->codec_name = ident->codec_name;
+ stream->content_type = ident->content_type;
break;
}
}
@@ -203,7 +203,7 @@
if (ordata->verbose)
fprintf (stderr,
"New logical stream, serialno %li, id %i, codec %s, will be %s\n",
- stream->serialno, stream->streamid, stream->codec_name,
+ stream->serialno, stream->streamid, stream->content_type,
(filter_stream_p (ordata, stream, og, serialno) ?
"copied" :"dropped"));
@@ -339,7 +339,7 @@
{"verbose", no_argument, 0, 'V'},
{"serialno", required_argument, 0, 's'},
{"streamid", required_argument, 0, 'i'},
- {"codec-name", required_argument, 0, 'c'},
+ {"content-type", required_argument, 0, 'c'},
{0,0,0,0}
};
@@ -384,12 +384,12 @@
if (or_get_long (optarg, currentopt,
&ordata->streamids[ordata->num_streamids++]))
goto exit_err;
- case 'c': /* codec-name */
- if (ordata->num_codec_names >= MAX_FILTER) {
- fprintf (stderr, "ERROR: too many codec-names on command line\n");
+ case 'c': /* content-type */
+ if (ordata->num_content_types >= MAX_FILTER) {
+ fprintf (stderr, "ERROR: too many content-types on command line\n");
goto exit_err;
}
- ordata->codec_names[ordata->num_codec_names++] = optarg;
+ ordata->content_types[ordata->num_content_types++] = optarg;
break;
default:
--
conrad
More information about the cvs-annodex
mailing list