pkgsrc/audio/vorbis-tools/patches/patch-ac
wiz d1e933c6db Update to 1.2.0:
vorbis-tools 1.2.0 -- 2008-02-21

 * FLAC support now relies on libFLAC
 * Support for large files
 * Fixed acinclude.m4 to properly support --no switches
 * ogg123: added remote control support
 * ogg123: fixed a bug in esd when pressing CTRL + C
 * ogg123: fixed a type mismatch in option parsing for 64 bit systems
 * ogg123: configuration no longer hardcoded to /etc
 * oggdec: limited support for chained Ogg bitstreams
 * ogg123: compiles with older versions of libcurl
 * oggdec: support decoding of multiple files into a single one
 * oggenc: -k, switch for Skeleton bitstream encoding
 * oggenc: fixed issues with Skeleton on big endian systems
 * oggenc: proper 5.1 channel mapping support
 * oggenc: FLAC module does not confuse every Ogg file as its own
 * oggenc: compiles with older versions of libvorbis
 * ogginfo: recognizes Skeleton, Dirac, FLAC and Kate bitstreams
 * vcut: solved issues described in ticket #1313
 * vorbiscomment: support for creation of long comments
 * vorbiscomment: support for multiplexed Vorbis
 * Several minor bug fixes
2008-03-14 18:55:54 +00:00

46 lines
1.8 KiB
Text

$NetBSD: patch-ac,v 1.8 2008/03/14 18:55:54 wiz Exp $
--- oggenc/oggenc.c.orig 2008-03-03 05:37:27.000000000 +0000
+++ oggenc/oggenc.c
@@ -676,6 +676,8 @@ static void parse_options(int argc, char
break;
case 'a':
+ if (strlen(optarg) == 0)
+ break;
opt->artist = realloc(opt->artist, (++opt->artist_count)*sizeof(char *));
opt->artist[opt->artist_count - 1] = strdup(optarg);
break;
@@ -688,10 +690,14 @@ static void parse_options(int argc, char
opt->comments[opt->comment_count - 1] = strdup(optarg);
break;
case 'd':
+ if (strlen(optarg) == 0)
+ break;
opt->dates = realloc(opt->dates, (++opt->date_count)*sizeof(char *));
opt->dates[opt->date_count - 1] = strdup(optarg);
break;
case 'G':
+ if (strlen(optarg) == 0)
+ break;
opt->genre = realloc(opt->genre, (++opt->genre_count)*sizeof(char *));
opt->genre[opt->genre_count - 1] = strdup(optarg);
break;
@@ -700,6 +706,8 @@ static void parse_options(int argc, char
exit(0);
break;
case 'l':
+ if (strlen(optarg) == 0)
+ break;
opt->album = realloc(opt->album, (++opt->album_count)*sizeof(char *));
opt->album[opt->album_count - 1] = strdup(optarg);
break;
@@ -712,6 +720,8 @@ static void parse_options(int argc, char
opt->fixedserial = 1;
break;
case 't':
+ if (strlen(optarg) == 0)
+ break;
opt->title = realloc(opt->title, (++opt->title_count)*sizeof(char *));
opt->title[opt->title_count - 1] = strdup(optarg);
break;