mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fixed bug compiling flac without ogg support (SF#1760786: http://sourceforge.net/tracker/index.php?func=detail&aid=1760786&group_id=13478&atid=113478)
This commit is contained in:
@@ -97,7 +97,7 @@
|
|||||||
<li>
|
<li>
|
||||||
build system:
|
build system:
|
||||||
<ul>
|
<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&aid=1760786&group_id=13478&atid=113478">SF #1760786</a>).</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
@@ -2177,10 +2177,12 @@ FLAC__bool convert_to_seek_table_template(const char *requested_seek_points, int
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
if(num_requested_seek_points < 0) {
|
if(num_requested_seek_points < 0) {
|
||||||
|
#if FLAC__HAS_OGG
|
||||||
/*@@@@@@ workaround ogg bug: too many seekpoints makes table not fit in one page */
|
/*@@@@@@ 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)
|
if(e->use_ogg && e->total_samples_to_encode > 0 && e->total_samples_to_encode / e->sample_rate / 10 > 230)
|
||||||
requested_seek_points = "230x;";
|
requested_seek_points = "230x;";
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
requested_seek_points = "10s;";
|
requested_seek_points = "10s;";
|
||||||
num_requested_seek_points = 1;
|
num_requested_seek_points = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user