diff options
| author | Brandon Low <lostlogic@rockbox.org> | 2006-03-24 13:43:15 +0000 |
|---|---|---|
| committer | Brandon Low <lostlogic@rockbox.org> | 2006-03-24 13:43:15 +0000 |
| commit | 86f1e2ead283d86f6896ca0f98c0b711da5e2cfe (patch) | |
| tree | fe961ef2fdfe8a5d6317604246acf63440326435 /apps/codecs/flac.c | |
| parent | b1cd32913dcd9bba7960c1f8f3b384ee1ff5a259 (diff) | |
| download | rockbox-86f1e2ead283d86f6896ca0f98c0b711da5e2cfe.zip rockbox-86f1e2ead283d86f6896ca0f98c0b711da5e2cfe.tar.gz rockbox-86f1e2ead283d86f6896ca0f98c0b711da5e2cfe.tar.bz2 rockbox-86f1e2ead283d86f6896ca0f98c0b711da5e2cfe.tar.xz | |
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
Diffstat (limited to 'apps/codecs/flac.c')
| -rw-r--r-- | apps/codecs/flac.c | 8 |
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]; |