Changeset 840
- Timestamp:
- 2005-02-04 19:48:24 (4 years ago)
- Files:
-
- liboggz/trunk/doc/oggzrip.1 (modified) (2 diffs)
- liboggz/trunk/doc/oggzrip.1.sgml (modified) (1 diff)
- liboggz/trunk/src/tools/oggzrip.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
liboggz/trunk/doc/oggzrip.1
r697 r840 88 88 starting at 0. 89 89 90 .IP "-c \fBco dec-name\fR --codec-name \fBcodec-name\fR" 1091 Filter by co dec-name. The following codecs90 .IP "-c \fBcontent-type\fR --content-type \fBcontent-type\fR" 10 91 Filter by content-type. The following codec names 92 92 are currently detected: "theora", 93 93 "vorbis", "speex", "annodex" … … 105 105 \fBoggzdump\fP\fB(1)\fP, 106 106 \fBoggzdiff\fP\fB(1)\fP 107 .\" created by instant / docbook-to-man, Sat 22 Jan 2005, 14:09107 .\" created by instant / docbook-to-man, Sat 05 Feb 2005, 15:44 liboggz/trunk/doc/oggzrip.1.sgml
r697 r840 126 126 </varlistentry> 127 127 <varlistentry> 128 <term>-c <parameter>co dec-name</parameter> --codec-name <parameter>codec-name</parameter></term>129 <listitem><para>Filter by co dec-name. The following codecs128 <term>-c <parameter>content-type</parameter> --content-type <parameter>content-type</parameter></term> 129 <listitem><para>Filter by content-type. The following codec names 130 130 are currently detected: "theora", 131 131 "vorbis", "speex", "annodex" liboggz/trunk/src/tools/oggzrip.c
r659 r840 68 68 int num_streamids; 69 69 long streamids[MAX_FILTER]; 70 int num_co dec_names;71 const char *co dec_names[MAX_FILTER];70 int num_content_types; 71 const char *content_types[MAX_FILTER]; 72 72 } ORData; 73 73 … … 75 75 long serialno; 76 76 int streamid; 77 const char *co dec_name;77 const char *content_type; 78 78 int bos; 79 79 } ORStream; … … 82 82 const char *bos_str; 83 83 int bos_str_len; 84 const char *co dec_name;84 const char *content_type; 85 85 } ORCodecIdent; 86 86 … … 114 114 printf (" streams in the order of their BOS pages,\n"); 115 115 printf (" starting at 0.\n"); 116 printf (" -c co dec-name --codec-name codec-name\n");117 printf (" Filter by co dec-name. The following codecs\n");118 printf (" are currently detected: \"theora\",\n");116 printf (" -c content-type --content-type content-type\n"); 117 printf (" Filter by content-type. The following codec\n"); 118 printf (" names are currently detected: \"theora\",\n"); 119 119 printf (" \"vorbis\", \"speex\", \"annodex\"\n"); 120 120 printf ("\n"); … … 167 167 } 168 168 169 for (i = 0; i < ordata->num_co dec_names; i++) {170 if (strcmp (ordata->co dec_names[i], stream->codec_name) == 0)169 for (i = 0; i < ordata->num_content_types; i++) { 170 if (strcmp (ordata->content_types[i], stream->content_type) == 0) 171 171 return 1; 172 172 } … … 185 185 stream->serialno = serialno; 186 186 stream->streamid = streamid_count++; 187 stream->co dec_name = "unknown";187 stream->content_type = "unknown"; 188 188 189 189 /* try to identify stream codec name by looking at the first bytes of the … … 196 196 if (og->body_len >= ident->bos_str_len && 197 197 memcmp (og->body, ident->bos_str, ident->bos_str_len) == 0) { 198 stream->co dec_name = ident->codec_name;198 stream->content_type = ident->content_type; 199 199 break; 200 200 } … … 204 204 fprintf (stderr, 205 205 "New logical stream, serialno %li, id %i, codec %s, will be %s\n", 206 stream->serialno, stream->streamid, stream->co dec_name,206 stream->serialno, stream->streamid, stream->content_type, 207 207 (filter_stream_p (ordata, stream, og, serialno) ? 208 208 "copied" :"dropped")); … … 340 340 {"serialno", required_argument, 0, 's'}, 341 341 {"streamid", required_argument, 0, 'i'}, 342 {"co dec-name", required_argument, 0, 'c'},342 {"content-type", required_argument, 0, 'c'}, 343 343 {0,0,0,0} 344 344 }; … … 385 385 &ordata->streamids[ordata->num_streamids++])) 386 386 goto exit_err; 387 case 'c': /* co dec-name */388 if (ordata->num_co dec_names >= MAX_FILTER) {389 fprintf (stderr, "ERROR: too many co dec-names on command line\n");387 case 'c': /* content-type */ 388 if (ordata->num_content_types >= MAX_FILTER) { 389 fprintf (stderr, "ERROR: too many content-types on command line\n"); 390 390 goto exit_err; 391 391 } 392 ordata->co dec_names[ordata->num_codec_names++] = optarg;392 ordata->content_types[ordata->num_content_types++] = optarg; 393 393 break; 394 394