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
6ced857c
Commit
6ced857c
authored
Jul 13, 2015
by
Erik de Castro Lopo
Browse files
libFLAC: Fix decoder_flush with uninitialized decoder
Closes:
https://sourceforge.net/p/flac/bugs/428
parent
cf7442d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/stream_decoder.c
View file @
6ced857c
...
...
@@ -936,6 +936,9 @@ FLAC_API FLAC__bool FLAC__stream_decoder_flush(FLAC__StreamDecoder *decoder)
FLAC__ASSERT
(
0
!=
decoder
->
private_
);
FLAC__ASSERT
(
0
!=
decoder
->
protected_
);
if
(
!
decoder
->
private_
->
internal_reset_hack
&&
decoder
->
protected_
->
state
==
FLAC__STREAM_DECODER_UNINITIALIZED
)
return
false
;
decoder
->
private_
->
samples_decoded
=
0
;
decoder
->
private_
->
do_md5_checking
=
false
;
...
...
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