From 86f1e2ead283d86f6896ca0f98c0b711da5e2cfe Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Fri, 24 Mar 2006 13:43:15 +0000 Subject: Convert playback.c to use unsigned byte counters, and _minor_ refactoring of buffer callbacks git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9227 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/flac.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'apps/codecs/flac.c') 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) 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]; -- cgit v1.2.3