summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/flac.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/codecs/flac.c b/apps/codecs/flac.c
index fa263c1..f95ae2a 100644
--- a/apps/codecs/flac.c
+++ b/apps/codecs/flac.c
@@ -118,11 +118,9 @@ static bool flac_init(FLACContext* fc, int first_frame_offset)
if ((buf[0] & 0x7f) == 0) /* 0 is the STREAMINFO block */
{
- /* FIXME: Don't trust the value of blocklength */
- if (ci->read_filebuf(buf, blocklength) < 0)
- {
- return false;
- }
+ /* FIXME: Don't trust the value of blocklength, use actual return
+ * value in bytes instead */
+ ci->read_filebuf(buf, blocklength);
fc->filesize = ci->filesize;
fc->min_blocksize = (buf[0] << 8) | buf[1];