Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
67a13156
Commit
67a13156
authored
Mar 20, 2001
by
Josh Coalson
Browse files
fix so that file decoder catches when stream decoder says EOF
parent
b9433f9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/file_decoder.c
View file @
67a13156
...
...
@@ -158,6 +158,9 @@ bool FLAC__file_decoder_process_whole_file(FLAC__FileDecoder *decoder)
bool
ret
;
assert
(
decoder
!=
0
);
if
(
decoder
->
guts
->
stream
->
state
==
FLAC__STREAM_DECODER_END_OF_FILE
)
decoder
->
state
=
FLAC__FILE_DECODER_END_OF_FILE
;
if
(
decoder
->
state
==
FLAC__FILE_DECODER_END_OF_FILE
)
return
true
;
...
...
@@ -175,6 +178,9 @@ bool FLAC__file_decoder_process_metadata(FLAC__FileDecoder *decoder)
bool
ret
;
assert
(
decoder
!=
0
);
if
(
decoder
->
guts
->
stream
->
state
==
FLAC__STREAM_DECODER_END_OF_FILE
)
decoder
->
state
=
FLAC__FILE_DECODER_END_OF_FILE
;
if
(
decoder
->
state
==
FLAC__FILE_DECODER_END_OF_FILE
)
return
true
;
...
...
@@ -192,6 +198,9 @@ bool FLAC__file_decoder_process_one_frame(FLAC__FileDecoder *decoder)
bool
ret
;
assert
(
decoder
!=
0
);
if
(
decoder
->
guts
->
stream
->
state
==
FLAC__STREAM_DECODER_END_OF_FILE
)
decoder
->
state
=
FLAC__FILE_DECODER_END_OF_FILE
;
if
(
decoder
->
state
==
FLAC__FILE_DECODER_END_OF_FILE
)
return
true
;
...
...
@@ -209,6 +218,9 @@ bool FLAC__file_decoder_process_remaining_frames(FLAC__FileDecoder *decoder)
bool
ret
;
assert
(
decoder
!=
0
);
if
(
decoder
->
guts
->
stream
->
state
==
FLAC__STREAM_DECODER_END_OF_FILE
)
decoder
->
state
=
FLAC__FILE_DECODER_END_OF_FILE
;
if
(
decoder
->
state
==
FLAC__FILE_DECODER_END_OF_FILE
)
return
true
;
...
...
Write
Preview
Supports
Markdown
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