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:
bd8bb54
)
fix largefile bug
author
Josh Coalson
<jcoalson@users.sourceforce.net>
Tue, 13 Jun 2006 05:17:12 +0000
(
05:17
+0000)
committer
Josh Coalson
<jcoalson@users.sourceforce.net>
Tue, 13 Jun 2006 05:17:12 +0000
(
05:17
+0000)
src/flac/encode.c
patch
|
blob
|
history
diff --git
a/src/flac/encode.c
b/src/flac/encode.c
index
8d42148
..
6528c7a
100644
(file)
--- a/
src/flac/encode.c
+++ b/
src/flac/encode.c
@@
-1036,7
+1036,7
@@
int flac__encode_raw(FILE *infile, off_t infilesize, const char *infilename, con
while(total_input_bytes_read < max_input_bytes) {
{
size_t wanted = (CHUNK_OF_SAMPLES * bytes_per_wide_sample);
- wanted =
min(wanted, (size_t)(max_input_bytes - total_input_bytes_read)
);
+ wanted =
(size_t) min((off_t)wanted, max_input_bytes - total_input_bytes_read
);
if(lookahead_length > 0) {
FLAC__ASSERT(lookahead_length <= wanted);