[xiph-cvs] cvs commit: vorbis-tools/oggenc oggenc.c
Michael Smith
msmith at xiph.org
Sat Jun 8 00:44:40 PDT 2002
msmith 02/06/08 00:44:39
Modified: oggenc oggenc.c
Log:
Make illegal comments be ignored instead of only warning about them
Revision Changes Path
1.56 +4 -2 vorbis-tools/oggenc/oggenc.c
Index: oggenc.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/oggenc.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- oggenc.c 2002/06/02 08:32:40 1.55
+++ oggenc.c 2002/06/08 07:44:39 1.56
@@ -597,8 +597,10 @@
opt->artist[opt->artist_count - 1] = strdup(optarg);
break;
case 'c':
- if(strchr(optarg, '=') == NULL)
- fprintf(stderr, _("Warning: Illegal comment used (\"%s\")\n"), optarg);
+ if(strchr(optarg, '=') == NULL) {
+ fprintf(stderr, _("Warning: Illegal comment used (\"%s\"), ignoring.\n"), optarg);
+ break;
+ }
opt->comments = realloc(opt->comments, (++opt->comment_count)*sizeof(char *));
opt->comments[opt->comment_count - 1] = strdup(optarg);
break;
<p><p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list