Fix encoding of raw files; from Xiph CVS.

This commit is contained in:
naddy 2002-03-26 02:40:55 +00:00
parent 0f4e529791
commit 154ae17464
2 changed files with 13 additions and 1 deletions

View File

@ -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/

View File

@ -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;