From f17e5f400943fd77392ac26eef57fdd1a8285ebc Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Fri, 17 May 2002 06:17:57 +0000 Subject: [PATCH] differentiate between format max bits per sample and codec max bits per sample --- src/flac/encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flac/encode.c b/src/flac/encode.c index 44590f44..a10b6087 100644 --- a/src/flac/encode.c +++ b/src/flac/encode.c @@ -96,7 +96,7 @@ typedef struct { static FLAC__bool is_big_endian_host; -static unsigned char ucbuffer[CHUNK_OF_SAMPLES*FLAC__MAX_CHANNELS*((FLAC__MAX_BITS_PER_SAMPLE+7)/8)]; +static unsigned char ucbuffer[CHUNK_OF_SAMPLES*FLAC__MAX_CHANNELS*((FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE+7)/8)]; static signed char *scbuffer = (signed char *)ucbuffer; static FLAC__uint16 *usbuffer = (FLAC__uint16 *)ucbuffer; static FLAC__int16 *ssbuffer = (FLAC__int16 *)ucbuffer;