set large default size for bug 131976 workaround
authorJosh Coalson <jcoalson@users.sourceforce.net>
Mon, 12 Feb 2001 09:03:07 +0000 (09:03 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Mon, 12 Feb 2001 09:03:07 +0000 (09:03 +0000)
src/libFLAC/bitbuffer.c

index 71110c1..bd72684 100644 (file)
 #include <string.h> /* for memcpy(), memset() */
 #include "private/bitbuffer.h"
 
-static const unsigned FLAC__BITBUFFER_DEFAULT_CAPACITY = 65536; /* bytes */
+/* WATCHOUT: this size here is a workaround due to a bug in the
+ * verify_read_callback in flac/encode.c, c.f.
+ *
+ *     http://sourceforge.net/bugs/?func=detailbug&bug_id=131976&group_id=13478
+ *
+ * When that bug is fixed the number here can be set back to a
+ * reasonable level.
+ */
+static const unsigned FLAC__BITBUFFER_DEFAULT_CAPACITY = 300000; /* bytes */
 
 #ifdef min
 #undef min