projects
/
platform
/
upstream
/
flac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c90a5ca
)
work around ogg flac bug where too many seekpoints makes seektable bigger than one...
author
Josh Coalson
<jcoalson@users.sourceforce.net>
Tue, 10 Jul 2007 02:10:44 +0000
(
02:10
+0000)
committer
Josh Coalson
<jcoalson@users.sourceforce.net>
Tue, 10 Jul 2007 02:10:44 +0000
(
02:10
+0000)
src/flac/encode.c
patch
|
blob
|
history
diff --git
a/src/flac/encode.c
b/src/flac/encode.c
index
38a8f01
..
797b4e2
100644
(file)
--- a/
src/flac/encode.c
+++ b/
src/flac/encode.c
@@
-2177,7
+2177,11
@@
FLAC__bool convert_to_seek_table_template(const char *requested_seek_points, int
return true;
if(num_requested_seek_points < 0) {
- requested_seek_points = "10s;";
+ /*@@@@@@ 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
+ requested_seek_points = "10s;";
num_requested_seek_points = 1;
}