Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
f7f7490e
Commit
f7f7490e
authored
Nov 04, 2006
by
Josh Coalson
Browse files
minor tweak to read callback eof handling
parent
5f0433fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/flac/encode.c
View file @
f7f7490e
...
@@ -2267,7 +2267,7 @@ FLAC__StreamDecoderReadStatus flac_decoder_read_callback(const FLAC__StreamDecod
...
@@ -2267,7 +2267,7 @@ FLAC__StreamDecoderReadStatus flac_decoder_read_callback(const FLAC__StreamDecod
*
bytes
=
n
+
fread
(
buffer
,
1
,
*
bytes
-
n
,
data
->
encoder_session
->
fin
);
*
bytes
=
n
+
fread
(
buffer
,
1
,
*
bytes
-
n
,
data
->
encoder_session
->
fin
);
if
(
ferror
(
data
->
encoder_session
->
fin
))
if
(
ferror
(
data
->
encoder_session
->
fin
))
return
FLAC__STREAM_DECODER_READ_STATUS_ABORT
;
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
;
return
FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM
;
else
else
return
FLAC__STREAM_DECODER_READ_STATUS_CONTINUE
;
return
FLAC__STREAM_DECODER_READ_STATUS_CONTINUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment