From 5feaafff5c595c8ea9a6900771fbcd884400590b Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Mon, 12 Feb 2001 09:03:07 +0000 Subject: [PATCH] set large default size for bug 131976 workaround --- src/libFLAC/bitbuffer.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/libFLAC/bitbuffer.c b/src/libFLAC/bitbuffer.c index 71110c14..bd726847 100644 --- a/src/libFLAC/bitbuffer.c +++ b/src/libFLAC/bitbuffer.c @@ -22,7 +22,15 @@ #include /* 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