Commit f7f7490e authored by Josh Coalson's avatar Josh Coalson
Browse files

minor tweak to read callback eof handling

parent 5f0433fd
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment