differentiate between format max bits per sample and codec max bits per sample
authorJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 17 May 2002 06:17:57 +0000 (06:17 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 17 May 2002 06:17:57 +0000 (06:17 +0000)
src/flac/encode.c

index 44590f4..a10b608 100644 (file)
@@ -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;