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 fa263c1095..f95ae2a8ce 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)
118 118
119 if ((buf[0] & 0x7f) == 0) /* 0 is the STREAMINFO block */ 119 if ((buf[0] & 0x7f) == 0) /* 0 is the STREAMINFO block */
120 { 120 {
121 /* FIXME: Don't trust the value of blocklength */ 121 /* FIXME: Don't trust the value of blocklength, use actual return
122 if (ci->read_filebuf(buf, blocklength) < 0) 122 * value in bytes instead */
123 { 123 ci->read_filebuf(buf, blocklength);
124 return false;
125 }
126 124
127 fc->filesize = ci->filesize; 125 fc->filesize = ci->filesize;
128 fc->min_blocksize = (buf[0] << 8) | buf[1]; 126 fc->min_blocksize = (buf[0] << 8) | buf[1];