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:
5f0433f
)
minor tweak to read callback eof handling
author
Josh Coalson
<jcoalson@users.sourceforce.net>
Sat, 4 Nov 2006 04:20:02 +0000
(
04:20
+0000)
committer
Josh Coalson
<jcoalson@users.sourceforce.net>
Sat, 4 Nov 2006 04:20:02 +0000
(
04:20
+0000)
src/flac/encode.c
patch
|
blob
|
history
diff --git
a/src/flac/encode.c
b/src/flac/encode.c
index
955e4a0
..
5d7fd81
100644
(file)
--- a/
src/flac/encode.c
+++ b/
src/flac/encode.c
@@
-2267,7
+2267,7
@@
FLAC__StreamDecoderReadStatus flac_decoder_read_callback(const FLAC__StreamDecod
*bytes = n + fread(buffer, 1, *bytes-n, data->encoder_session->fin);
if(ferror(data->encoder_session->fin))
return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
- else if(0 == *bytes
&& feof(data->encoder_session->fin)
)
+ else if(0 == *bytes)
return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM;
else
return FLAC__STREAM_DECODER_READ_STATUS_CONTINUE;