fixed bug compiling flac without ogg support (SF#1760786: http://sourceforge.net...
authorJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 26 Jul 2007 08:01:40 +0000 (08:01 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 26 Jul 2007 08:01:40 +0000 (08:01 +0000)
doc/html/changelog.html
src/flac/encode.c

index ebb889d..7fba15e 100644 (file)
@@ -97,7 +97,7 @@
                        <li>
                                build system:
                                <ul>
-                                       <li>(none)</li>
+                                       <li>Fixed bug compiling <span class="commandname">flac</span> without Ogg support (<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1760786&amp;group_id=13478&amp;atid=113478">SF #1760786</a>).</li>
                                </ul>
                        </li>
                        <li>
index 797b4e2..5da5139 100644 (file)
@@ -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;
        }