pkgsrc/audio/vorbis-tools/patches/patch-ac
wiz c632d292ab Update to 1.0.1:
ogg123

    * Support for playing FLAC and Speex files. Both the native FLAC and
      Ogg FLAC varieties are supported. Special thanks to OldMan, adiabatic,
      and smack from #vorbis for sponsoring the development of this feature.
    * Send correct User Agent and Accept strings in the HTTP 1.1 headers
    * Fixed bug preventing the status line from showing the total time
      information in certain circumstances
    * Fixed a pthread crash bug on certain platforms (like NetBSD)
    * Added support for the --end option to specify at what time
      playback should stop. Both --skip and --end also now accept times in
      hh:mm:ss format. Thanks to Hans Schou.
    * If the --skip option is greater than the length of the file,
      ogg123 now terminates with an error.

oggdec

    * Fixed small memory leak.
    * Fixed error that caused oggdec to crash when output file was not
      specified.

oggenc

    * Patch from Jordan Mendelson to support reading little-endian AIFF
      files (which happen to be made by MacOS X when ripping CDs?).
    * --scale option to allow scaling the volume of the input. Helps
      with clipping inputs.
    * Fixed usage messages.
    * 24 bit input support
    * FLAC and Ogg FLAC read support. Comments from the FLAC file are
      preserved unless explicitly dropped with the --discard-comments option.
      Also funded by OldMan, adiabatic, and smack.
    * Less frequent status updates.

ogginfo

    * Minor typo and portability fixes.
    * Emits fewer spurious errors when minor errors are detected.
    * Return a useful status code.
    * Fixed overflow bug on really long files.

vcut

    * Patch from Jared Anderson allows the cutpoint to be specified in
      (integer) seconds by prefixing it with a +.

vorbiscomment

    * More forgiving of Ogg files that begin with garbage (like ID3v2
      tags).
2003-12-08 14:43:48 +00:00

46 lines
1.6 KiB
Text

$NetBSD: patch-ac,v 1.6 2003/12/08 14:43:48 wiz Exp $
--- oggenc/oggenc.c.orig Tue Sep 16 00:04:00 2003
+++ oggenc/oggenc.c
@@ -640,6 +640,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;
@@ -652,10 +654,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;
@@ -664,6 +670,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;
@@ -674,6 +682,8 @@ static void parse_options(int argc, char
opt->serial = 0; /* Failed, so just set to zero */
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;