From 154ae174645b43e552d7dbff3c06a24139d47121 Mon Sep 17 00:00:00 2001 From: naddy Date: Tue, 26 Mar 2002 02:40:55 +0000 Subject: [PATCH] Fix encoding of raw files; from Xiph CVS. --- audio/vorbis-tools/Makefile | 3 ++- audio/vorbis-tools/patches/patch-oggenc_audio_c | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 audio/vorbis-tools/patches/patch-oggenc_audio_c diff --git a/audio/vorbis-tools/Makefile b/audio/vorbis-tools/Makefile index 2fc2f5a0efd..5a842478462 100644 --- a/audio/vorbis-tools/Makefile +++ b/audio/vorbis-tools/Makefile @@ -1,7 +1,8 @@ -# $OpenBSD: Makefile,v 1.13 2002/02/03 22:05:03 naddy Exp $ +# $OpenBSD: Makefile,v 1.14 2002/03/26 02:40:55 naddy Exp $ COMMENT= "play, encode, and manage Ogg Vorbis files" DISTNAME= vorbis-tools-1.0rc3 +PKGNAME= ${DISTNAME}p1 CATEGORIES= audio NEED_VERSION= 1.457 HOMEPAGE= http://www.vorbis.com/ diff --git a/audio/vorbis-tools/patches/patch-oggenc_audio_c b/audio/vorbis-tools/patches/patch-oggenc_audio_c new file mode 100644 index 00000000000..d84ec4f34c0 --- /dev/null +++ b/audio/vorbis-tools/patches/patch-oggenc_audio_c @@ -0,0 +1,11 @@ +$OpenBSD: patch-oggenc_audio_c,v 1.1 2002/03/26 02:40:55 naddy Exp $ +--- oggenc/audio.c.orig Tue Mar 26 03:22:27 2002 ++++ oggenc/audio.c Tue Mar 26 03:23:35 2002 +@@ -570,6 +570,7 @@ int raw_open(FILE *in, oe_enc_opt *opt) + wav->bigendian = 0; + wav->channels = format.channels; + wav->samplesize = opt->samplesize; ++ wav->totalsamples = 0; + + opt->read_samples = wav_read; + opt->readdata = (void *)wav;