From 42c22d5f00ed839e230966acae0a40eb06795c2c Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Thu, 26 Jul 2007 08:01:40 +0000 Subject: [PATCH] fixed bug compiling flac without ogg support (SF#1760786: http://sourceforge.net/tracker/index.php?func=detail&aid=1760786&group_id=13478&atid=113478) --- doc/html/changelog.html | 2 +- src/flac/encode.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/html/changelog.html b/doc/html/changelog.html index ebb889d8..7fba15e5 100644 --- a/doc/html/changelog.html +++ b/doc/html/changelog.html @@ -97,7 +97,7 @@
  • build system:
  • diff --git a/src/flac/encode.c b/src/flac/encode.c index 797b4e28..5da51391 100644 --- a/src/flac/encode.c +++ b/src/flac/encode.c @@ -2177,10 +2177,12 @@ FLAC__bool convert_to_seek_table_template(const char *requested_seek_points, int return true; if(num_requested_seek_points < 0) { +#if FLAC__HAS_OGG /*@@@@@@ workaround ogg bug: too many seekpoints makes table not fit in one page */ if(e->use_ogg && e->total_samples_to_encode > 0 && e->total_samples_to_encode / e->sample_rate / 10 > 230) requested_seek_points = "230x;"; else +#endif requested_seek_points = "10s;"; num_requested_seek_points = 1; }